def get_albums_with_hrefs(library_dir, library_url): albums = get_albums(library_dir) for album in albums.values(): album.href = reverse('album_detail', kwargs={'album_name': album.name}) return albums
def setUp(self): self.albums = get_albums(ALBUM_DIR)