def test_check_manifest_should_raise_systemexit_0_in_console_script(self): self.options['check-manifest-directory'] = os.path.realpath( os.path.join(os.path.dirname(__file__), '../../../..'), ) with OutputCapture(): with self.assertRaisesRegexp(SystemExit, '0'): console_script(self.options)
def test_check_manifest_should_raise_systemexit_1_in_console_script(self): with OutputCapture(): with self.assertRaisesRegexp(SystemExit, '1'): console_script(self.options)