Пример #1
0
 def test_no_region(self):
     l = Location(
         LocationInfo("London", None, "Europe/London", 51.68, -0.05))
     assert l.__repr__() == "London, tz=Europe/London, lat=51.68, lon=-0.05"
Пример #2
0
 def test_default(self):
     l = Location()
     assert (l.__repr__() ==
             "Greenwich/England, tz=Europe/London, lat=51.47, lon=-0.00")
Пример #3
0
 def test_full(self):
     l = Location(
         LocationInfo("London", "England", "Europe/London", 51.68, -0.05))
     assert l.__repr__(
     ) == "London/England, tz=Europe/London, lat=51.68, lon=-0.05"