Skip to content

Commit

Permalink
test for none ok_code
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Moffat committed Dec 2, 2016
1 parent 706a27e commit f7d3616
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,10 @@ def test_ok_code(self):
ls("/aofwje/garogjao4a/eoan3on", _ok_code=[code_to_pass])
ls("/aofwje/garogjao4a/eoan3on", _ok_code=range(code_to_pass + 1))

def test_ok_code_none(self):
py = create_tmp_test("exit(0)")
python(py.name, _ok_code=None)

def test_quote_escaping(self):
py = create_tmp_test("""
from optparse import OptionParser
Expand Down

0 comments on commit f7d3616

Please sign in to comment.