def test_get_file_data(self): """ Test loading of file data for a file. """ result, _ = FileMetaDataModularInput.get_file_data("..") self.assertEquals(result['is_directory'], 1)
def test_get_file_data_file_count_on_root(self): """ Ensure that the input correctly handles the case where the directory requested does exist. """ result, _ = FileMetaDataModularInput.get_file_data("../src/bin") self.assertGreaterEqual(result['file_count'], 1) self.assertGreaterEqual(result['directory_count'], 1)