示例#1
0
 def test_analysis_should_raise_systemexit_1_in_console_script(self):
     self.given_a_file_in_test_dir('invalid.pt', INVALID_TABS)
     with OutputCapture():
         with self.assertRaisesRegexp(SystemExit, '1'):
             console_script(self.options)
 def test_analysis_should_raise_systemexit_1_in_console_script(self):
     self.given_a_file_in_test_dir('invalid.pt', INVALID_TABS)
     with OutputCapture():
         with self.assertRaisesRegexp(SystemExit, '1'):
             console_script(self.options)
示例#3
0
 def test_analysis_should_raise_systemexit_0_in_console_script(self):
     with OutputCapture():
         with self.assertRaisesRegexp(SystemExit, '0'):
             console_script(self.options)
 def test_analysis_should_raise_systemexit_0_in_console_script(self):
     with OutputCapture():
         with self.assertRaisesRegexp(SystemExit, '0'):
             console_script(self.options)