From 4f0da96964fec5bdc2b66d4117aa9773e5a12a4d Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Thu, 28 Mar 2013 17:25:05 +0000 Subject: Rename copy_stuff() to collect() The name copy_stuff() isn't as descriptive now that the data may be being streamed into an archive without being copied into a temporary directory. Calling it collect covers both equally well. Signed-off-by: Bryn M. Reeves --- tests/plugin_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/plugin_tests.py') diff --git a/tests/plugin_tests.py b/tests/plugin_tests.py index 0e7869bb..153ff350 100644 --- a/tests/plugin_tests.py +++ b/tests/plugin_tests.py @@ -304,13 +304,13 @@ class RegexSubTests(unittest.TestCase): def test_no_replacements(self): self.mp.add_copy_spec(j("tail_test.txt")) - self.mp.copy_stuff() + self.mp.collect() replacements = self.mp.doFileSub(j("tail_test.txt"), r"wont_match", "foobar") self.assertEquals(0, replacements) def test_replacements(self): self.mp.add_copy_spec(j("tail_test.txt")) - self.mp.copy_stuff() + self.mp.collect() 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'))) -- cgit