mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-05-01 02:14:49 +00:00
Merge pull request #73 from LegoStormtroopr/master
fixed error in test ordering of keys
This commit is contained in:
commit
10a2fe3b9f
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