def testMissingFile(self, stderr): rtn = patch_configure.main(['non-existent/configure-script']) self.assertEqual(rtn, 1) expected = '^configure script not found: non-existent/configure-script$' self.assertRegexpMatches(stderr.getvalue(), expected)
def test_missing_file(self, stderr): rtn = patch_configure.main(["non-existent/configure-script"]) self.assertEqual(rtn, 1) expected = "^configure script not found: non-existent/configure-script$" self.assertRegexpMatches(stderr.getvalue(), expected)