mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-03-17 05:40:25 +00:00
fixed error in test ordering of keys
This commit is contained in:
parent
5147bdf640
commit
c8b27d3dd9
1 changed files with 1 additions and 1 deletions
|
|
@ -246,7 +246,7 @@ class NotificationTestPages(TestCase):
|
|||
|
||||
response = self.client.get(reverse('notifications:live_unread_notification_list')+"?max=12")
|
||||
data = json.loads(response.content.decode('utf-8'))
|
||||
self.assertEqual(list(data.keys()),['unread_count','unread_list'])
|
||||
self.assertEqual(sorted(list(data.keys())),['unread_count','unread_list'])
|
||||
self.assertEqual(data['unread_count'],10)
|
||||
self.assertEqual(len(data['unread_list']),10)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue