def test_get_edge_direction_up_left(self): """Ensures correct output from _get_edge_direction. In this case, direction is up-left. """ this_direction_name = polygons._get_edge_direction( first_row=FIRST_VERTEX_ROW, second_row=SECOND_VERTEX_ROW_UP_LEFT, first_column=FIRST_VERTEX_COLUMN, second_column=SECOND_VERTEX_COLUMN_UP_LEFT) self.assertTrue(this_direction_name == polygons.UP_LEFT_DIRECTION_NAME)
def test_get_edge_direction_down(self): """Ensures correct output from _get_edge_direction. In this case, direction is down. """ this_direction_name = polygons._get_edge_direction( first_row=FIRST_VERTEX_ROW, second_row=SECOND_VERTEX_ROW_DOWN, first_column=FIRST_VERTEX_COLUMN, second_column=SECOND_VERTEX_COLUMN_DOWN) self.assertTrue(this_direction_name == polygons.DOWN_DIRECTION_NAME)