Check array length

This commit is contained in:
Juan Ignacio Sánchez Lara 2018-07-05 17:57:17 +02:00
parent 91012ea62d
commit d00a48f16e

View File

@ -247,5 +247,6 @@ class TestBulkStreetFunctions(TestStreetFunctionsSetUp):
@staticmethod @staticmethod
def assert_close_points(points_a_by_cartodb_id, points_b_by_cartodb_id): def assert_close_points(points_a_by_cartodb_id, points_b_by_cartodb_id):
assert_equal(len(points_a_by_cartodb_id), len(points_b_by_cartodb_id))
for cartodb_id, point in points_a_by_cartodb_id.iteritems(): for cartodb_id, point in points_a_by_cartodb_id.iteritems():
assert_close_enough(point, points_b_by_cartodb_id[cartodb_id]) assert_close_enough(point, points_b_by_cartodb_id[cartodb_id])