Пример #1
0
 def test_no_file(self):
     with no_stderr():
         input.parse_args([])
Пример #2
0
 def test_no_file(self):
     with no_stderr():
         input.parse_args([])
Пример #3
0
 def test_incorrect_format(self):
     with no_stderr():
         with assert_raises(SystemExit):
             input.parse_args(['-o', 'foo', '-f', 'baz', 'bar'])
         with assert_raises(SystemExit):
             input.parse_args(['-o', 'foo.baz', 'bar'])
Пример #4
0
 def test_incorrect_format(self):
     with no_stderr():
         with assert_raises(SystemExit):
             input.parse_args(['-o', 'foo', '-f', 'baz', 'bar'])
         with assert_raises(SystemExit):
             input.parse_args(['-o', 'foo.baz', 'bar'])