def test_message_delete_all(self): extra = G(Monit, user=G(User)) self.assertEquals(Monit.objects.count(), 2) self.non_ajax_request() res = message_delete_all(self.request) self.assertEquals(Monit.objects.count(), 1) self.assertNonAjaxRequestOkay(res)
def test_message_delete_all_ajax(self): self.ajax_request() self.assertAjaxRequestOkay(message_delete_all(self.request))