summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-08-30 13:26:48 -0400
committerJason R. Coombs <jaraco@jaraco.com>2015-08-30 13:26:48 -0400
commit3bf3f37dd03a1978f6c8386dd348f681241494a8 (patch)
tree3bd0bff77630ef0e80d4598b1d0b92507792997d
parent2822a45bc27876169fd57bad2fdf2d9d5ae2aede (diff)
downloadpython-setuptools-git-3bf3f37dd03a1978f6c8386dd348f681241494a8.tar.gz
Add another test capturing the basic discovery expectation.
-rw-r--r--tests/test_filelist.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_filelist.py b/tests/test_filelist.py
index 6b3bde0d..45ff5653 100644
--- a/tests/test_filelist.py
+++ b/tests/test_filelist.py
@@ -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()