aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2012-12-05 18:33:35 +0000
committerBryn M. Reeves <bmr@redhat.com>2012-12-05 19:50:33 +0000
commitfcee39532f5d6ae49f9f0db429706d2f7085ed2b (patch)
tree4b28af273674b97676d55e20bf59a4050b76838b /tests
parent3a982ffb7a63710d8fdbbfb3d885fd6704c8b6fe (diff)
downloadsos-fcee39532f5d6ae49f9f0db429706d2f7085ed2b.tar.gz
Rename regex substitution functions
Rename doRegexSub and doRegexExtOutputSub to doFileSub and doExtOutputSub respectively.
Diffstat (limited to 'tests')
-rw-r--r--tests/plugin_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/plugin_tests.py b/tests/plugin_tests.py
index a3055543..f01a7a9c 100644
--- a/tests/plugin_tests.py
+++ b/tests/plugin_tests.py
@@ -300,18 +300,18 @@ class RegexSubTests(unittest.TestCase):
self.mp.archive = MockArchive()
def test_file_never_copied(self):
- self.assertEquals(0, self.mp.doRegexSub("never_copied", r"^(.*)$", "foobar"))
+ self.assertEquals(0, self.mp.doFileSub("never_copied", r"^(.*)$", "foobar"))
def test_no_replacements(self):
self.mp.addCopySpec(j("tail_test.txt"))
self.mp.copyStuff()
- replacements = self.mp.doRegexSub(j("tail_test.txt"), r"wont_match", "foobar")
+ replacements = self.mp.doFileSub(j("tail_test.txt"), r"wont_match", "foobar")
self.assertEquals(0, replacements)
def test_replacements(self):
self.mp.addCopySpec(j("tail_test.txt"))
self.mp.copyStuff()
- replacements = self.mp.doRegexSub(j("tail_test.txt"), r"(tail)", "foobar")
+ replacements = self.mp.doFileSub(j("tail_test.txt"), r"(tail)", "foobar")
self.assertEquals(1, replacements)
self.assertTrue("foobar" in self.mp.archive.m.get(j('tail_test.txt')))