Mercurial > treepkg
comparison test/test_util.py @ 162:876db132431a
Remove debug print
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Thu, 19 Jun 2008 14:27:49 +0000 |
parents | 017179427c7f |
children | 261b75d7b972 |
comparison
equal
deleted
inserted
replaced
161:710538908609 | 162:876db132431a |
---|---|
17 class TestReplaceInFile(unittest.TestCase, FileTestMixin): | 17 class TestReplaceInFile(unittest.TestCase, FileTestMixin): |
18 | 18 |
19 def runtest(self, orig_contents, expected_contents, pattern, replacement): | 19 def runtest(self, orig_contents, expected_contents, pattern, replacement): |
20 filename = self.create_temp_file(self.id(), orig_contents) | 20 filename = self.create_temp_file(self.id(), orig_contents) |
21 changed = replace_in_file(filename, pattern, replacement) | 21 changed = replace_in_file(filename, pattern, replacement) |
22 print "TestReplaceInFile.runtest", changed | |
23 self.assertEquals(changed, orig_contents != expected_contents) | 22 self.assertEquals(changed, orig_contents != expected_contents) |
24 self.checkFileContents(filename, expected_contents) | 23 self.checkFileContents(filename, expected_contents) |
25 | 24 |
26 def test_version_replacement(self): | 25 def test_version_replacement(self): |
27 template = ("project foo version 1.0-svn%(rev)d" | 26 template = ("project foo version 1.0-svn%(rev)d" |