Beispiel #1
0
 def test_offensive_rebounds_per_game(self):
     # Lebron James(2003-2004)
     offensive_rebounds_per_game = Metrics.offensive_rebounds_per_game(
         99, 79)
     self.assertEqual(offensive_rebounds_per_game, 1.3)
Beispiel #2
0
 def test_free_throw_attempts_per_game(self):
     # Lebron James(2003-2004)
     free_throw_attempts_per_game = Metrics.free_throw_attempts_per_game(
         460, 79)
     self.assertEqual(free_throw_attempts_per_game, 5.8)
Beispiel #3
0
 def test_free_throw_percentage(self):
     # Lebron James(2003-2004)
     free_throw_percentage = Metrics.free_throw_percentage(347, 460)
     self.assertEqual(free_throw_percentage, 0.754)
Beispiel #4
0
 def test_effective_field_goal_percentage(self):
     # Lebron James(2003-2004)
     effective_field_goal_percentage = Metrics.effective_field_goal_percentage(
         622, 63, 1492)
     self.assertEqual(effective_field_goal_percentage, 0.438)
Beispiel #5
0
 def test_free_throws_per_game(self):
     # Lebron James(2003-2004)
     free_throws_per_game = Metrics.free_throws_per_game(347, 79)
     self.assertEqual(free_throws_per_game, 4.4)
Beispiel #6
0
 def test_two_point_field_goal_attempts_per_game(self):
     # Lebron James(2003-2004)
     two_point_field_goal_attempts_per_game = Metrics.two_point_field_goal_attempts_per_game(
         1275, 79)
     self.assertEqual(two_point_field_goal_attempts_per_game, 16.1)
Beispiel #7
0
 def test_two_point_field_goal_percentage(self):
     # Lebron James(2003-2004)
     two_point_field_goal_percentage = Metrics.two_point_field_goal_percentage(
         559, 1275)
     self.assertEqual(two_point_field_goal_percentage, 0.438)
Beispiel #8
0
 def test_three_point_field_goal_percentage(self):
     # Lebron James(2003-2004)
     miniutes_played_per_game = Metrics.three_point_field_goal_percentage(
         63, 217)
     self.assertEqual(miniutes_played_per_game, 0.290)
Beispiel #9
0
 def test_two_point_field_goals_per_game(self):
     # Lebron James(2003-2004)
     two_point_field_goals_per_game = Metrics.two_point_field_goals_per_game(
         559, 79)
     self.assertEqual(two_point_field_goals_per_game, 7.1)
Beispiel #10
0
 def test_three_point_field_goals_per_game(self):
     # Lebron James(2003-2004)
     three_point_field_goals_per_game = Metrics.three_point_field_goals_per_game(
         63, 79)
     self.assertEqual(three_point_field_goals_per_game, 0.8)
Beispiel #11
0
 def test_three_point_field_goal_attempts_per_game(self):
     # Lebron James(2003-2004)
     three_point_field_goal_attempts_per_game = Metrics.three_point_field_goal_attempts_per_game(
         217, 79)
     self.assertEqual(three_point_field_goal_attempts_per_game, 2.7)
Beispiel #12
0
 def test_field_goal_percentage(self):
     # Lebron James(2003-2004)
     field_goal_percentage = Metrics.field_goal_percentage(622, 1492)
     self.assertEqual(field_goal_percentage, 0.417)
Beispiel #13
0
 def test_field_goal_attempts_per_game(self):
     # Lebron James(2003-2004)
     field_goal_attempts_per_game = Metrics.field_goal_attempts_per_game(
         1492, 79)
     self.assertEqual(field_goal_attempts_per_game, 18.9)
Beispiel #14
0
 def test_field_goals_per_game(self):
     # Lebron James(2003-2004)
     field_goals_per_game = Metrics.field_goals_per_game(622, 79)
     self.assertEqual(field_goals_per_game, 7.9)
Beispiel #15
0
 def test_miniutes_played_per_game(self):
     # Lebron James(2003-2004)
     miniutes_played_per_game = Metrics.miniutes_played_per_game(3122, 79)
     self.assertEqual(miniutes_played_per_game, 39.5)
Beispiel #16
0
 def test_deffensive_rebounds_per_game(self):
     # Lebron James(2003-2004)
     deffensive_rebounds_per_game = Metrics.deffensive_rebounds_per_game(
         333, 79)
     self.assertEqual(deffensive_rebounds_per_game, 4.2)