示例#1
0
def test_defines_metadata_tags():
    assert_that(
        tuple(Album.tags()),
        contains_inanyorder("release_name", "compilation", "lead_performer",
                            "lead_performer_region", "guest_performers",
                            "label_name", "upc", "catalog_number",
                            "release_time", "original_release_time",
                            "lead_performer_date_of_birth", "contributors",
                            "isnis", "ipis"))
示例#2
0
def test_has_initially_no_metadata_or_images():
    album = Album()
    for tag in Album.tags():
        assert_that(getattr(album, tag), none(), tag)

    assert_that(album.images, empty(), "images")