def test_directory_path(self): # Ensure the full path of a directory is correctly returned. os.mkdir(self.path) self.assertEqual(self.path, first_path_in_dir(self.directory))
def test_file_path(self): # Ensure the full path of a file is correctly returned. open(self.path, 'w').close() self.assertEqual(self.path, first_path_in_dir(self.directory))