def test__create_from_jsonapi(self): r = DotDict(id="foo", attributes=dict(geometry=POINT, properties=dict(foo="bar"))) feature = Feature._create_from_jsonapi(r) assert feature.id is not None assert feature.geometry is not None assert feature.properties is not None
def test__create_from_jsonapi(self): r = DotDict(id='foo', attributes=dict(geometry=POINT, properties=dict(foo='bar'))) feature = Feature._create_from_jsonapi(r) self.assertIsNotNone(feature.id) self.assertIsNotNone(feature.geometry) self.assertIsNotNone(feature.properties)