コード例 #1
0
 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)
コード例 #2
0
 def test_calc_rush_fp_100_yds(self):
     player = {'rushing_yds': 221}
     self.assertEquals(scoring.cal_rush_fp(player), 11)
コード例 #3
0
 def test_calc_rush_fp_twoptm(self):
     player = {'rushing_twoptm': 2}
     self.assertEquals(scoring.cal_rush_fp(player), 4)
コード例 #4
0
 def test_calc_rush_fp_tds(self):
     player = {'rushing_tds': 3}
     self.assertEquals(scoring.cal_rush_fp(player), 18)
コード例 #5
0
 def test_calc_rush_fp_tds_bonus(self):
     player = {'rushing_tds_bonus': 2}
     self.assertEquals(scoring.cal_rush_fp(player), 24)
コード例 #6
0
 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)
コード例 #7
0
 def test_calc_rush_fp_twoptm(self):
     player = {'rushing_twoptm': 2}
     self.assertEquals(scoring.cal_rush_fp(player), 4)
コード例 #8
0
 def test_calc_rush_fp_100_yds(self):
     player = {'rushing_yds': 221}
     self.assertEquals(scoring.cal_rush_fp(player), 11)
コード例 #9
0
 def test_calc_rush_fp_tds_bonus(self):
     player = {'rushing_tds_bonus': 2}
     self.assertEquals(scoring.cal_rush_fp(player), 24)
コード例 #10
0
 def test_calc_rush_fp_tds(self):
     player = {'rushing_tds': 3}
     self.assertEquals(scoring.cal_rush_fp(player), 18)