def test_play_tiles_valid_vertical(self): game = Game() score = game.play_tiles([(Board.MIDDLE[0], Board.MIDDLE[1], self.A), (Board.MIDDLE[0] + 1, Board.MIDDLE[1], self.B) ]) self.assertEqual(score, 4)
def test_play_tiles_invalid(self): position = (Board.MIDDLE[0], Board.MIDDLE[1] + 4) game = Game() with self.assertRaises(InvalidPlayException): game.play_tiles([(position[0], position[1], self.A)])