aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utilities_tests.py
diff options
context:
space:
mode:
authorJesse Jaggars <jjaggars@redhat.com>2012-03-08 12:15:16 -0600
committerJesse Jaggars <jjaggars@redhat.com>2012-03-08 12:15:16 -0600
commitbbc6890f9ef4a7612c6960a522df4b0cd099054e (patch)
tree641b4cece1b3df69130796d985643f8874a21ae6 /tests/utilities_tests.py
parent237b0157e98c6412c77b32d6d1cedc7afd0b02e4 (diff)
downloadsos-bbc6890f9ef4a7612c6960a522df4b0cd099054e.tar.gz
fixing fileGrep to pass multiple search paths better and we handle non-existant files as well
Diffstat (limited to 'tests/utilities_tests.py')
-rw-r--r--tests/utilities_tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/utilities_tests.py b/tests/utilities_tests.py
index fbfc9a55..7eecc01a 100644
--- a/tests/utilities_tests.py
+++ b/tests/utilities_tests.py
@@ -23,6 +23,10 @@ class GrepTest(unittest.TestCase):
matches = grep(".*unittest$", open(__file__.replace(".pyc", ".py")))
self.assertEquals(matches, ['import unittest\n'])
+ def test_grep_multiple_files(self):
+ matches = grep(".*unittest$", __file__.replace(".pyc", ".py"), "does_not_exist.txt")
+ self.assertEquals(matches, ['import unittest\n'])
+
class DirTreeTest(unittest.TestCase):