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