def test_calc_rush_fp_all(self): player = { 'rushing_tds': 1, 'rushing_tds_bonus': 1, 'rushing_yds': 153, 'rushing_twoptm': 1 } self.assertEquals(scoring.cal_rush_fp(player), 6 + 12 + 7 + 2)
def test_calc_rush_fp_100_yds(self): player = {'rushing_yds': 221} self.assertEquals(scoring.cal_rush_fp(player), 11)
def test_calc_rush_fp_twoptm(self): player = {'rushing_twoptm': 2} self.assertEquals(scoring.cal_rush_fp(player), 4)
def test_calc_rush_fp_tds(self): player = {'rushing_tds': 3} self.assertEquals(scoring.cal_rush_fp(player), 18)
def test_calc_rush_fp_tds_bonus(self): player = {'rushing_tds_bonus': 2} self.assertEquals(scoring.cal_rush_fp(player), 24)
def test_calc_rush_fp_all(self): player = {'rushing_tds': 1, 'rushing_tds_bonus': 1, 'rushing_yds': 153, 'rushing_twoptm': 1} self.assertEquals(scoring.cal_rush_fp(player), 6+12+7+2)