def test_get_direction_of_vertex_pair_down_left(self): """Ensures correct output from _get_direction_of_vertex_pair. In this case the direction is down-left. """ this_direction = polygons._get_direction_of_vertex_pair( FIRST_VERTEX_ROW, SECOND_VERTEX_ROW_DOWN_LEFT, FIRST_VERTEX_COLUMN, SECOND_VERTEX_COLUMN_DOWN_LEFT) self.assertTrue(this_direction == polygons.DOWN_LEFT_DIRECTION_NAME)
def test_get_direction_of_vertex_pair_up_right(self): """Ensures correct output from _get_direction_of_vertex_pair. In this case the direction is up-right. """ this_direction = polygons._get_direction_of_vertex_pair( FIRST_VERTEX_ROW, SECOND_VERTEX_ROW_UP_RIGHT, FIRST_VERTEX_COLUMN, SECOND_VERTEX_COLUMN_UP_RIGHT) self.assertTrue(this_direction == polygons.UP_RIGHT_DIRECTION_NAME)