コード例 #1
0
ファイル: test_attributes.py プロジェクト: alasspri/stravalib
 def test_without_location(self):
     location = LocationAttribute((SUMMARY, DETAILED))
     self.assertIsNone(location.unmarshal([]))
コード例 #2
0
ファイル: test_attributes.py プロジェクト: alasspri/stravalib
 def test_with_location(self):
     location = LocationAttribute((SUMMARY, DETAILED))
     self.assertEqual(LatLon(1., 2.), location.unmarshal([1., 2.]))