aboutsummaryrefslogtreecommitdiffstats
path: root/tests/plugin_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugin_tests.py')
-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')))