]> granicus.if.org Git - python/commitdiff
Add another test capturing the basic discovery expectation.
authorJason R. Coombs <jaraco@jaraco.com>
Sun, 30 Aug 2015 17:26:48 +0000 (13:26 -0400)
committerJason R. Coombs <jaraco@jaraco.com>
Sun, 30 Aug 2015 17:26:48 +0000 (13:26 -0400)
Lib/distutils/tests/test_filelist.py

index 6b3bde0d9b6ccad4a0d5a053cb6a292b3f169393..45ff56537344f9c43b5130a9faf3da233f9b923b 100644 (file)
@@ -301,6 +301,17 @@ class FindAllTestCase(unittest.TestCase):
             os.symlink('foo', 'bar')
             self.assertEqual(filelist.findall(), [])
 
+    def test_basic_discovery(self):
+        with test.support.temp_cwd():
+            os.mkdir('foo')
+            file1 = os.path.join('foo', 'file1.txt')
+            test.support.create_empty_file(file1)
+            os.mkdir('bar')
+            file2 = os.path.join('bar', 'file2.txt')
+            test.support.create_empty_file(file2)
+            expected = [file1, file2]
+            self.assertEqual(filelist.findall(), expected)
+
 
 if __name__ == "__main__":
     unittest.main()