Пример #1
0
 def test_can_find_files(self):
     known_values = (
         ("ec_sorter.py", ["../ec_sorter.py"]),
         ("books.py", ["../books.py", "files/books.py"]),
         ("test_possibilities.py", ["./test_possibilities.py"]),
         ("there_is_no_such_file.py", []),
         ("test", []),  # It does not find directories.
     )
     for file_name, result in known_values:
         self.assertEqual(
             books.name_with_path(file_name, self.file_paths),
             result
         )