def test_all_length(region_name='all'): expected = expected_len(region_name) + expected_len('extra') assert len(Database().get_all()) == expected
def test_extra_length(region_name='extra'): assert len(Database().get_extra()) == expected_len(region_name)
def test_unova_length(region_name='unova'): assert len(Database().get_unova()) == expected_len(region_name)
def test_kalos_length(region_name='kalos'): assert len(Database().get_kalos()) == expected_len(region_name)
def test_sinnoh_length(region_name='sinnoh'): assert len(Database().get_sinnoh()) == expected_len(region_name)
def test_hoenn_length(region_name='hoenn'): assert len(Database().get_hoenn()) == expected_len(region_name)
def test_johto_length(region_name='johto'): assert len(Database().get_johto()) == expected_len(region_name)
def test_len(): assert len(Database()) == len(load_all_pokemon()) \ == MAX_ID + expected_len('extra')
def broken_test_kanto_length(region_name='kanto'): assert len(Database().get_kanto()) == expected_len(region_name)