Esempio n. 1
0
def test_to_list():
    assert Band.to_list() == []
    the_nobodies = Band("The Nobodies", [])
    all_bands = Band.to_list()
    assert len(all_bands) == 1
    assert all_bands[0] == the_nobodies
Esempio n. 2
0
def test_to_list():
    assert Band.to_list() == []
    Band("The Nobodies", [])
    assert len(Band.to_list()) == 1
Esempio n. 3
0
def test_class_tracks_instances():
    assert Band.to_list() == []
    the_nobodies = Band("The Nobodies", [])
    assert len(Band.instances) == 1
    assert Band.instances[0] == the_nobodies