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