Example #1
0
 def test_gm_property_priority_bad(self):
     gm = GameMode(mode="test", priority=3)
     with self.assertRaises(TypeError):
         gm.priority = "X"
Example #2
0
 def test_gm_property_priority(self):
     gm = GameMode(mode="test", priority=3)
     gm.priority = 5
     self.assertEqual(gm.priority, 5)