def test_get_top_level_invalid(self, random_zip_file_without_top_level_dir): top_level_dir_name = get_top_level_dir_from_compressed_package( str(random_zip_file_without_top_level_dir)) assert top_level_dir_name is None
def test_get_top_level_valid(self, random_zip_file_with_top_level_dir): top_level_dir_name = get_top_level_dir_from_compressed_package( str(random_zip_file_with_top_level_dir)) assert top_level_dir_name == TOP_LEVEL_DIR_NAME