Esempio n. 1
0
def test_season_code() -> None:
    assert rotation.season_code(1) == 'EMN'
    found = False
    try:
        rotation.season_code(999)
    except DoesNotExistException:
        found = True
    assert found
    found = False
    try:
        assert rotation.season_code('ISD')
    except DoesNotExistException:
        found = True
    assert found
    assert rotation.season_code('HOU') == 'HOU'
    assert rotation.season_code('hou') == 'HOU'
    assert rotation.season_code('ALL') == 'ALL'
    assert rotation.season_code('all') == 'ALL'
Esempio n. 2
0
 def season_code_lower(self) -> str:
     return rotation.season_code(get_season_id()).lower()