# Path: nba_data/data/season.py
# class Season(BaseQueryParameter, Enum):
#     season_2016 = "2016-17"
#     season_2015 = "2015-16"
#     season_2014 = "2014-15"
#     season_2013 = "2013-14"
#     season_2012 = "2012-13"
#     season_2011 = "2011-12"
#     season_2010 = "2010-11"
#     season_2009 = "2009-10"
#     season_2008 = "2008-09"
#     season_2007 = "2007-08"
#     season_2006 = "2006-07"
#     season_2005 = "2005-06"
#     season_2004 = "2004-05"
#     season_2003 = "2003-04"
#     season_2002 = "2002-03"
#     season_2001 = "2001-02"
#     season_2000 = "2000-01"
#     season_1999 = "1999-00"
#     season_1998 = "1998-99"
#     season_1997 = "1997-98"
#     season_1996 = "1996-97"
#     season_1995 = "1995-96"
#     season_1994 = "1994-95"
#     season_1993 = "1993-94"
#     season_1992 = "1992-93"
#     season_1991 = "1991-92"
#     season_1990 = "1990-91"
# 
#     @staticmethod
#     def get_query_parameter_name():
#         return "Season"
# 
#     @staticmethod
#     def get_season_by_name(name):
#         season = season_name_map.get(name)
# 
#         if season is None:
#             raise ValueError("Unknown season name: %s", name)
# 
#         return season
# 
#     @staticmethod
#     def get_season_by_start_year(year):
#         season = start_year_to_season_map.get(year)
# 
#         if season is None:
#             raise ValueError("Unknown season start year: %s", year)
# 
#         return season
# 
#     @staticmethod
#     def get_season_by_end_year(year):
#         season = season_end_year_map.get(year)
# 
#         if season is None:
#             raise ValueError("Unknown season end year: %s", year)
# 
#         return season
# 
#     @staticmethod
#     def get_season_by_start_and_end_year(start_year, end_year):
#         start_year_season = Season.get_season_by_start_year(year=start_year)
#         end_year_season = Season.get_season_by_end_year(year=end_year)
# 
#         if start_year_season is not end_year_season:
#             raise ValueError("Cannot find season with start year: %s and end year: %s", start_year, end_year)
# 
#         return start_year_season
# 
#     @staticmethod
#     def get_start_year_by_season(season):
#         assert isinstance(season, Season)
# 
#         start_year = season_to_start_year_map.get(season)
# 
#         if start_year is None:
#             raise ValueError("Cannot find start year for season: %s", season)
# 
#         return start_year
# 
# Path: nba_data/data/season_range.py
# class SeasonRange:
#     def __init__(self, start, end):
#         self.start = start
#         self.end = end
# 
# Path: nba_data/data/team.py
# class Team(BaseQueryParameter, Enum):
#     atlanta_hawks = "Atlanta Hawks"
#     boston_celtics = "Boston Celtics"
#     brooklyn_nets = "Brooklyn Nets"
#     charlotte_hornets = "Charlotte Hornets"
#     chicago_bulls = "Chicago Bulls"
#     cleveland_cavaliers = "Cleveland Cavaliers"
#     dallas_mavericks = "Dallas Mavericks"
#     denver_nuggets = "Denver Nuggets"
#     detroit_pistons = "Detroit Pistons"
#     golden_state_warriors = "Golden State Warriors"
#     houston_rockets = "Houston Rockets"
#     indiana_pacers = "Indiana Pacers"
#     los_angeles_clippers = "Los Angeles Clippers"
#     los_angeles_lakers = "Los Angeles Lakers"
#     memphis_grizzlies = "Memphis Grizzlies"
#     miami_heat = "Miami Heat"
#     milwaukee_bucks = "Milwaukee Bucks"
#     minnesota_timberwolves = "Minnesota Timberwolves"
#     new_orleans_pelicans = "New Orleans Pelicans"
#     new_york_knicks = "New York Knicks"
#     oklahoma_city_thunder = "Oklahoma City Thunder"
#     orlando_magic = "Orlando Magic"
#     philadelphia_76ers = "Philadelphia 76ers"
#     phoenix_suns = "Phoenix Suns"
#     portland_trail_blazers = "Portland Trail Blazers"
#     sacramento_kings = "Sacramento Kings"
#     san_antonio_spurs = "San Antonio Spurs"
#     toronto_raptors = "Toronto Raptors"
#     utah_jazz = "Utah Jazz"
#     washington_wizards = "Washington Wizards"
# 
#     @staticmethod
#     def get_query_parameter_name():
#         return "TeamId"
# 
#     @staticmethod
#     def get_team_by_id(team_id):
#         assert isinstance(team_id, int)
# 
#         return team_id_map.get(team_id)
# 
#     @staticmethod
#     def get_id(team):
#         assert isinstance(team, Team)
# 
#         return team_to_id_map.get(team)
# 
#     @staticmethod
#     def get_team_by_abbreviation(abbreviation):
#         assert isinstance(abbreviation, basestring)
# 
#         team = team_abbreviation_map.get(abbreviation.upper())
# 
#         if team is None:
#             raise ValueError('Unknown team abbreviation: %s', abbreviation)
# 
#         return team_abbreviation_map.get(abbreviation.upper())
# 
#     @staticmethod
#     def get_team_by_name(name):
#         assert isinstance(name, basestring)
# 
#         team = team_name_map.get(name)
# 
#         if team is None:
#             raise ValueError('Unknown team name: %s', name)
# 
#         return team
# 
# Path: nba_data/data/team_season_range.py
# class TeamSeasonRange:
#     def __init__(self, team, season_range):
#         self.team = team
#         self.season_range = season_range


from unittest import TestCase
from nba_data.data.season import Season
from nba_data.data.season_range import SeasonRange
from nba_data.data.team import Team
from nba_data.data.team_season_range import TeamSeasonRange



class TestTeamSeasonRange(TestCase):
    def test_instantiation(self):
        team = Team.atlanta_hawks
        start_season = Season.season_2015

# Path: nba_data/data/season.py
# class Season(BaseQueryParameter, Enum):
#     season_2016 = "2016-17"
#     season_2015 = "2015-16"
#     season_2014 = "2014-15"
#     season_2013 = "2013-14"
#     season_2012 = "2012-13"
#     season_2011 = "2011-12"
#     season_2010 = "2010-11"
#     season_2009 = "2009-10"
#     season_2008 = "2008-09"
#     season_2007 = "2007-08"
#     season_2006 = "2006-07"
#     season_2005 = "2005-06"
#     season_2004 = "2004-05"
#     season_2003 = "2003-04"
#     season_2002 = "2002-03"
#     season_2001 = "2001-02"
#     season_2000 = "2000-01"
#     season_1999 = "1999-00"
#     season_1998 = "1998-99"
#     season_1997 = "1997-98"
#     season_1996 = "1996-97"
#     season_1995 = "1995-96"
#     season_1994 = "1994-95"
#     season_1993 = "1993-94"
#     season_1992 = "1992-93"
#     season_1991 = "1991-92"
#     season_1990 = "1990-91"
# 
#     @staticmethod
#     def get_query_parameter_name():
#         return "Season"
# 
#     @staticmethod
#     def get_season_by_name(name):
#         season = season_name_map.get(name)
# 
#         if season is None:
#             raise ValueError("Unknown season name: %s", name)
# 
#         return season
# 
#     @staticmethod
#     def get_season_by_start_year(year):
#         season = start_year_to_season_map.get(year)
# 
#         if season is None:
#             raise ValueError("Unknown season start year: %s", year)
# 
#         return season
# 
#     @staticmethod
#     def get_season_by_end_year(year):
#         season = season_end_year_map.get(year)
# 
#         if season is None:
#             raise ValueError("Unknown season end year: %s", year)
# 
#         return season
# 
#     @staticmethod
#     def get_season_by_start_and_end_year(start_year, end_year):
#         start_year_season = Season.get_season_by_start_year(year=start_year)
#         end_year_season = Season.get_season_by_end_year(year=end_year)
# 
#         if start_year_season is not end_year_season:
#             raise ValueError("Cannot find season with start year: %s and end year: %s", start_year, end_year)
# 
#         return start_year_season
# 
#     @staticmethod
#     def get_start_year_by_season(season):
#         assert isinstance(season, Season)
# 
#         start_year = season_to_start_year_map.get(season)
# 
#         if start_year is None:
#             raise ValueError("Cannot find start year for season: %s", season)
# 
#         return start_year
# 
# Path: nba_data/data/season_range.py
# class SeasonRange:
#     def __init__(self, start, end):
#         self.start = start
#         self.end = end
# 
# Path: nba_data/data/team.py
# class Team(BaseQueryParameter, Enum):
#     atlanta_hawks = "Atlanta Hawks"
#     boston_celtics = "Boston Celtics"
#     brooklyn_nets = "Brooklyn Nets"
#     charlotte_hornets = "Charlotte Hornets"
#     chicago_bulls = "Chicago Bulls"
#     cleveland_cavaliers = "Cleveland Cavaliers"
#     dallas_mavericks = "Dallas Mavericks"
#     denver_nuggets = "Denver Nuggets"
#     detroit_pistons = "Detroit Pistons"
#     golden_state_warriors = "Golden State Warriors"
#     houston_rockets = "Houston Rockets"
#     indiana_pacers = "Indiana Pacers"
#     los_angeles_clippers = "Los Angeles Clippers"
#     los_angeles_lakers = "Los Angeles Lakers"
#     memphis_grizzlies = "Memphis Grizzlies"
#     miami_heat = "Miami Heat"
#     milwaukee_bucks = "Milwaukee Bucks"
#     minnesota_timberwolves = "Minnesota Timberwolves"
#     new_orleans_pelicans = "New Orleans Pelicans"
#     new_york_knicks = "New York Knicks"
#     oklahoma_city_thunder = "Oklahoma City Thunder"
#     orlando_magic = "Orlando Magic"
#     philadelphia_76ers = "Philadelphia 76ers"
#     phoenix_suns = "Phoenix Suns"
#     portland_trail_blazers = "Portland Trail Blazers"
#     sacramento_kings = "Sacramento Kings"
#     san_antonio_spurs = "San Antonio Spurs"
#     toronto_raptors = "Toronto Raptors"
#     utah_jazz = "Utah Jazz"
#     washington_wizards = "Washington Wizards"
# 
#     @staticmethod
#     def get_query_parameter_name():
#         return "TeamId"
# 
#     @staticmethod
#     def get_team_by_id(team_id):
#         assert isinstance(team_id, int)
# 
#         return team_id_map.get(team_id)
# 
#     @staticmethod
#     def get_id(team):
#         assert isinstance(team, Team)
# 
#         return team_to_id_map.get(team)
# 
#     @staticmethod
#     def get_team_by_abbreviation(abbreviation):
#         assert isinstance(abbreviation, basestring)
# 
#         team = team_abbreviation_map.get(abbreviation.upper())
# 
#         if team is None:
#             raise ValueError('Unknown team abbreviation: %s', abbreviation)
# 
#         return team_abbreviation_map.get(abbreviation.upper())
# 
#     @staticmethod
#     def get_team_by_name(name):
#         assert isinstance(name, basestring)
# 
#         team = team_name_map.get(name)
# 
#         if team is None:
#             raise ValueError('Unknown team name: %s', name)
# 
#         return team
# 
# Path: nba_data/data/team_season_range.py
# class TeamSeasonRange:
#     def __init__(self, team, season_range):
#         self.team = team
#         self.season_range = season_range


# Path: tests/test_teamSeasonRange.py
from unittest import TestCase
from nba_data.data.season import Season
from nba_data.data.season_range import SeasonRange
from nba_data.data.team import Team
from nba_data.data.team_season_range import TeamSeasonRange




class TestTeamSeasonRange(TestCase):
    def test_instantiation(self):
        team = Team.atlanta_hawks
        start_season = Season.season_2015

        end_season = Season.season_2016