def test_move_pawn_forward_one(): board = Board() board._populate_with_default() board.move('d2', 'd3') nose.tools.ok_(isinstance(board['d3'], Pawn)) nose.tools.ok_(board.is_location_empty('d2'))
def test_board_is_location_empty(): board = Board() nose.tools.ok_(board.is_location_empty("d2")) nose.tools.ok_(board.is_location_empty("a1")) nose.tools.ok_(board.is_location_empty("h7"))