Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_normalize_feature_objects_bad(expected_features):
objs = [MockGeo(f) for f in expected_features]
objs.append(MockGeo(dict()))
with pytest.raises(ValueError):
list(normalize_feature_objects(objs))
def test_normalize_feature_objects(expected_features):
objs = [MockGeo(f) for f in expected_features]
assert expected_features == list(normalize_feature_objects(objs))
assert expected_features == list(normalize_feature_objects(expected_features))
def test_normalize_feature_objects(expected_features):
objs = [MockGeo(f) for f in expected_features]
assert expected_features == list(normalize_feature_objects(objs))
assert expected_features == list(normalize_feature_objects(expected_features))