def test_two_one_tile_sized_elements(self): coordinates = _get_surrounding_coordinates(0, 0, 1, 1, 1, 1) self.assertEqual(len(coordinates), 16) self.assertEqual(coordinates, set([ (-2, -2), (-2, -1), (-2, 0), (-2, 1), (-2, 2), (-1, 2), (0, 2), (1, 2), (2, 2), (2, 1), (2, 0), (2, -1), (2, -2), (1, -2), (0, -2), (-1, -2)]))
def test_two_elements_with_different_size_ratios(self): coordinates = _get_surrounding_coordinates(0, 0, 1, 2, 2, 1) self.assertEqual(len(coordinates), 20)
def test_two_two_tile_sized_elements(self): coordinates = _get_surrounding_coordinates(0, 0, 2, 2, 2, 2) self.assertEqual(len(coordinates), 24)