src/cm/tests/test_notifications.py
changeset 278 3d25afbd78ff
parent 68 db564b6ad6b5
child 590 e103299bccc0
equal deleted inserted replaced
277:588ca38ccb61 278:3d25afbd78ff
    17         c.login(username='user1', password='test')
    17         c.login(username='user1', password='test')
    18         self.assertEquals(len(Notification.objects.all()), 0)
    18         self.assertEquals(len(Notification.objects.all()), 0)
    19 
    19 
    20         # subscribe to workspace notifications
    20         # subscribe to workspace notifications
    21         response = c.post('/followup/', {'notif_id': u'workspace_notify_check', 
    21         response = c.post('/followup/', {'notif_id': u'workspace_notify_check', 
    22                                          'workspace_notify_check': u'workspace_notify_check',
    22                                          'workspace_notify_check': u'true',
    23                                          })
    23                                          })
    24 
    24 
    25         self.assertEquals(len(Notification.objects.all()), 1)
    25         self.assertEquals(len(Notification.objects.all()), 1)
    26         
    26         
    27         # subscribe to own notifications
    27         # subscribe to own notifications