From 3941fd8ab59f37986808d63b2a543c29b7a251f5 Mon Sep 17 00:00:00 2001 From: hugovk Date: Thu, 18 Dec 2014 21:13:28 +0200 Subject: [PATCH] Make test more robust --- setup.py | 3 ++- test_pylast.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 94e11f1..c166df7 100755 --- a/setup.py +++ b/setup.py @@ -27,7 +27,8 @@ setup( name="pylast", version="1.0." + get_build(), author="Amr Hassan ", - 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=[ diff --git a/test_pylast.py b/test_pylast.py index 52244bf..81dcbbc 100755 --- a/test_pylast.py +++ b/test_pylast.py @@ -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