Last.fm API broken but allow either yyyy-mm-dd or Unix timestamp
@@ -72,10 +72,11 @@ class TestPyLastUser(PyLastTestCase):
registered = user.get_registered()
# Assert
- # Last.fm API broken? Should be yyyy-mm-dd not Unix timestamp
if int(registered):
- pytest.skip("Last.fm API is broken.")
-
+ # Last.fm API broken? Used to be yyyy-mm-dd not Unix timestamp
+ self.assertEqual(registered, "1037793040")
+ else:
+ # Old way
# Just check date because of timezones
self.assertIn(u"2002-11-20 ", registered)
