def test_without_location(self): location = LocationAttribute((SUMMARY, DETAILED)) self.assertIsNone(location.unmarshal([]))
def test_with_location(self): location = LocationAttribute((SUMMARY, DETAILED)) self.assertEqual(LatLon(1., 2.), location.unmarshal([1., 2.]))