def test_position1(self): g = Game() g.place(1, 1, g.EX) self.assertEqual(g.get_position(1, 1), g.EX)
def test_invalid_position2(self): g = Game() with self.assertRaises(ValueError): g.get_position(3, 0)
def test_position1(self): g = Game() g.place(1, 1, g.EX) self.assertEqual(g.get_position(1, 1), g.EX)
def test_invalid_position2(self): g = Game() with self.assertRaises(ValueError): g.get_position(3, 0)