示例#1
0
 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)
示例#2
0
 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)
 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)