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