def test_game_details_dict(nba_http_patch): assert boxscore.BoxScore(game_id).game_details.get_dict() == game_details
def test_away_team_player_stats(nba_http_patch): assert boxscore.BoxScore(game_id).away_team_player_stats.get_dict( ) == content['game']['awayTeam']['players']
def test_officials_dict(nba_http_patch): assert boxscore.BoxScore( game_id).officials.get_dict() == content['game']['officials']
def test_away_team_dict(nba_http_patch): assert boxscore.BoxScore( game_id).away_team.get_dict() == content['game']['awayTeam']
def test_away_team_stats(nba_http_patch): assert boxscore.BoxScore( game_id).away_team_stats.get_dict() == away_team_stats
def test_home_team_dict(nba_http_patch): assert boxscore.BoxScore( game_id).home_team.get_dict() == content['game']['homeTeam']
def test_arena_dict(nba_http_patch): assert boxscore.BoxScore( game_id).arena.get_dict() == content['game']['arena']
def test_game_dict(nba_http_patch): assert boxscore.BoxScore(game_id).game.get_dict() == content['game']
def test_get_response(nba_http_patch): assert json.dumps(content) == boxscore.BoxScore(game_id).get_response()
def test_get_request_url(): assert boxscore.BoxScore(game_id).get_request_url( ) == 'https://cdn.nba.com/static/json/liveData/boxscore/boxscore_0022000180.json'