def test_go_set_key_bad(self): go = GameObject() with self.assertRaises(ValueError): go.key = None
def test_go_set_guesses_made_low(self): go = GameObject() with self.assertRaises(ValueError): go.guesses_made = -1
def test_go_set_key(self): go = GameObject() go.key = "12-34-56-78-99" self.assertEqual(go.key, "12-34-56-78-99")
def test_go_set_guesses_made_bad(self): go = GameObject() with self.assertRaises(TypeError): go.guesses_made = "crazy-hard"