Beispiel #1
0
 def test_team_enum_value(self):
     self.assertEqual(format_value(Team.BOSTON_CELTICS), "BOSTON CELTICS")
Beispiel #2
0
 def test_positions_set_with_single_position(self):
     self.assertEqual(format_value({Position.POINT_GUARD}), "POINT GUARD")
Beispiel #3
0
 def test_string_value(self):
     self.assertEqual(format_value("jaebaebae"), "jaebaebae")
Beispiel #4
0
 def test_positions_array_with_single_position(self):
     self.assertEqual(format_value([Position.POINT_GUARD]), "POINT GUARD")
Beispiel #5
0
 def test_positions_array_with_multiple_positions(self):
     self.assertEqual(format_value([Position.POINT_GUARD, Position.SHOOTING_GUARD]), "POINT GUARD-SHOOTING GUARD")
Beispiel #6
0
 def test_position_enum_value(self):
     self.assertEqual(format_value(Position.POINT_GUARD), "POINT GUARD")
Beispiel #7
0
 def test_empty_set(self):
     self.assertEqual(format_value(set()), "")
Beispiel #8
0
 def test_empty_array(self):
     self.assertEqual(format_value([]), "")
Beispiel #9
0
 def test_outcome_enum_value(self):
     self.assertEqual(format_value(Outcome.LOSS), "LOSS")
Beispiel #10
0
 def test_location_enum_value(self):
     self.assertEqual(format_value(Location.HOME), "HOME")