Commit 59e15f39 authored by Jason R. Coombs's avatar Jason R. Coombs

Add another test capturing the basic discovery expectation.

parent e9de4f52
......@@ -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()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment