From bbc6890f9ef4a7612c6960a522df4b0cd099054e Mon Sep 17 00:00:00 2001 From: Jesse Jaggars Date: Thu, 8 Mar 2012 12:15:16 -0600 Subject: fixing fileGrep to pass multiple search paths better and we handle non-existant files as well --- tests/utilities_tests.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/utilities_tests.py') 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): -- cgit