def test_fail_pawn_move(self): pawn = Pawn('white') self.assertFalse(pawn.can_move('e2', 'e8'))
def test_fail_pawn_move_back(self): pawn = Pawn('white') self.assertFalse(pawn.can_move('b4', 'b3'))
def test_pawn_move(self): pawn = Pawn('white') self.assertTrue(pawn.can_move('b4', 'b5')) self.assertTrue(pawn.can_move('e7', 'e8'))