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