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