[Python-checkins] cpython (3.4): Add another test capturing the basic discovery expectation.

jason.coombs python-checkins at python.org
Thu Sep 1 21:17:07 EDT 2016


https://hg.python.org/cpython/rev/404f5fb51ffb
changeset:   102992:404f5fb51ffb
branch:      3.4
user:        Jason R. Coombs <jaraco at jaraco.com>
date:        Sun Aug 30 13:26:48 2015 -0400
summary:
  Add another test capturing the basic discovery expectation.

files:
  Lib/distutils/tests/test_filelist.py |  11 +++++++++++
  1 files changed, 11 insertions(+), 0 deletions(-)


diff --git a/Lib/distutils/tests/test_filelist.py b/Lib/distutils/tests/test_filelist.py
--- a/Lib/distutils/tests/test_filelist.py
+++ b/Lib/distutils/tests/test_filelist.py
@@ -301,6 +301,17 @@
             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()

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list