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