Make test more robust

This commit is contained in:
hugovk 2014-12-18 21:13:28 +02:00
parent 8a53afd41b
commit 3941fd8ab5
2 changed files with 4 additions and 2 deletions

View file

@ -27,7 +27,8 @@ setup(
name="pylast",
version="1.0." + get_build(),
author="Amr Hassan <amr.hassan@gmail.com>",
description="A Python interface to Last.fm (and other API compatible social networks)",
description=("A Python interface to Last.fm "
"(and other API compatible social networks)"),
author_email="amr.hassan@gmail.com",
url="https://github.com/pylast/pylast",
classifiers=[

View file

@ -863,7 +863,8 @@ class TestPyLast(unittest.TestCase):
self.assertEqual(len(events), 1)
event = events[0]
self.assertIsInstance(event, pylast.Event)
self.assertEqual(event.get_venue().location['city'], "London")
self.assertIn(event.get_venue().location['city'],
["London", "Camden"])
def test_geo_get_events_in_latlong(self):
# Arrange