Exemplo n.º 1
0
def test():
    gid = '0041400122'
    assert game.BoxscoreScoring(gid)
    assert game.BoxscoreUsage(gid)
    assert game.BoxscoreMisc(gid)
    assert game.BoxscoreAdvanced(gid)
    assert game.BoxscoreFourFactors(gid)
    assert game.PlayByPlay(gid)
 def testAll(self):
     assert game.BoxscoreSummary(self.gameId)
     assert game.Boxscore(self.gameId)
     assert game.BoxscoreScoring(self.gameId)
     assert game.BoxscoreUsage(self.gameId)
     assert game.BoxscoreMisc(self.gameId)
     assert game.BoxscoreAdvanced(self.gameId)
     assert game.BoxscoreFourFactors(self.gameId)
     assert game.PlayByPlay(self.gameId)
     assert game.HustleStats(self.gameId)
    def testBoxScoreMisc(self):
        boxscoreadvanced = game.BoxscoreMisc(self.gameId)

        playermisc = boxscoreadvanced.sql_players_misc()
        self.assertTrue((26, 21), playermisc.shape)
        self.assertTrue(('Aaron Gordon' == playermisc[1:2].PLAYER_NAME).all())

        teammisc = boxscoreadvanced.sql_team_misc()
        self.assertTrue((2, 18), teammisc.shape)
        self.assertTrue(('Celtics' == teammisc[1:2].TEAM_NAME).all())
Exemplo n.º 4
0
def test():
    gid = '0041400122'
    print(game.BoxscoreSummary(gid).line_score())
    assert game.BoxscoreSummary(gid)
    assert game.Boxscore(gid)
    assert game.BoxscoreScoring(gid)
    assert game.BoxscoreUsage(gid)
    assert game.BoxscoreMisc(gid)
    assert game.BoxscoreAdvanced(gid)
    assert game.BoxscoreFourFactors(gid)
    assert game.PlayByPlay(gid)
    assert game.HustleStats(gid)
Exemplo n.º 5
0
def boxscore_misc(game_id, start_period, end_period, start_range,
                  end_range, range_type):
    return game.BoxscoreMisc(game_id, start_period=start_period,
                             end_period=end_period, start_range=start_range,
                             end_range=end_range, range_type=range_type)