summaryrefslogtreecommitdiff
path: root/test/test_farm.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_farm.py')
-rw-r--r--test/test_farm.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_farm.py b/test/test_farm.py
index a20a9a2d..c2c78be6 100644
--- a/test/test_farm.py
+++ b/test/test_farm.py
@@ -237,6 +237,12 @@ class FarmTestCase(object):
assert not right_only, "Files in %s only: %s" % (dir2, right_only)
def _scrub(self, strlist, scrubs):
+ """Scrub uninteresting data from the strings in `strlist`.
+
+ `scrubs is a list of (find, replace) pairs of regexes that are used on
+ each string in `strlist`. A list of scrubbed strings is returned.
+
+ """
scrubbed = []
for s in strlist:
for rgx_find, rgx_replace in scrubs: