def test_can_ship_be_put_left_top_corner_true(self):
        shipValidatorVert = ShipPositionValidator(self.empty_board, 3, (1, 1),
                                                  'vertical')
        shipValidatorHor = ShipPositionValidator(self.empty_board, 3, (1, 1),
                                                 'horizontal')

        self.assertTrue(shipValidatorVert.can_ship_be_put_there())
        self.assertTrue(shipValidatorHor.can_ship_be_put_there())
    def test_can_ship_be_put_left_boundary_false(self):
        shipValidatorVert = ShipPositionValidator(
            self.board_with_ships_near_boundaries, 3, (4, 1), 'vertical')
        shipValidatorHor = ShipPositionValidator(
            self.board_with_ships_near_boundaries, 3, (4, 1), 'horizontal')

        self.assertFalse(shipValidatorVert.can_ship_be_put_there())
        self.assertFalse(shipValidatorHor.can_ship_be_put_there())
    def test_can_ship_be_put_right_bottom_corner_false(self):
        shipValidatorVert = ShipPositionValidator(
            self.board_with_ships_near_boundaries, 3, (8, 10), 'vertical')
        shipValidatorHor = ShipPositionValidator(
            self.board_with_ships_near_boundaries, 3, (10, 8), 'horizontal')

        self.assertFalse(shipValidatorVert.can_ship_be_put_there())
        self.assertFalse(shipValidatorHor.can_ship_be_put_there())
    def test_can_ship_be_put_in_the_middle_true(self):
        shipValidatorVert = ShipPositionValidator(self.empty_board, 3, (4, 6),
                                                  'vertical')
        shipValidatorHor = ShipPositionValidator(self.empty_board, 3, (4, 4),
                                                 'horizontal')

        self.assertTrue(shipValidatorVert.can_ship_be_put_there())
        self.assertTrue(shipValidatorHor.can_ship_be_put_there())
    def test_can_ship_be_put_bottom_boundary_true(self):
        shipValidatorVert = ShipPositionValidator(self.empty_board, 3, (8, 6),
                                                  'vertical')
        shipValidatorHor = ShipPositionValidator(self.empty_board, 3, (10, 5),
                                                 'horizontal')

        self.assertTrue(shipValidatorVert.can_ship_be_put_there())
        self.assertTrue(shipValidatorHor.can_ship_be_put_there())
    def test_can_ship_be_put_right_bottom_corner_true(self):
        shipValidatorVert = ShipPositionValidator(self.empty_board, 3, (8, 10),
                                                  'vertical')
        shipValidatorHor = ShipPositionValidator(self.empty_board, 3, (10, 8),
                                                 'horizontal')

        self.assertTrue(shipValidatorVert.can_ship_be_put_there())
        self.assertTrue(shipValidatorHor.can_ship_be_put_there())