aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2013-03-28 17:25:05 +0000
committerBryn M. Reeves <bmr@redhat.com>2013-03-28 17:25:05 +0000
commit4f0da96964fec5bdc2b66d4117aa9773e5a12a4d (patch)
tree408a22da23a00e0a49cb34a42f89d1e7d7b8def6 /tests
parent1f90719d9d5b42d1c553ecded27a85965ce3197c (diff)
downloadsos-4f0da96964fec5bdc2b66d4117aa9773e5a12a4d.tar.gz
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 <bmr@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/plugin_tests.py4
1 files changed, 2 insertions, 2 deletions
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')))