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