Make test more robust
This commit is contained in:
parent
8a53afd41b
commit
3941fd8ab5
3
setup.py
3
setup.py
|
@ -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=[
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue