def test_mark_notification_as_read_for_difference_notifications(self): mark_notification_as_read(key=2, cls="DifferenceNotification") self.assertFalse(DifferenceNotification.objects.get(id=2).unread)
def test_mark_notification_as_read_for_tip_notifications(self): mark_notification_as_read(key=2, cls="TipNotification") self.assertFalse(TipNotification.objects.get(id=2).unread)