Beispiel #1
0
 def test_no_user(self):
     view = setup_view(UserDeleteView(), self.request, guid='meh')
     with nt.assert_raises(Http404):
         view.delete(self.request)
Beispiel #2
0
 def setUp(self):
     self.user = UserFactory()
     self.request = RequestFactory().post('/fake_path')
     self.view = UserDeleteView()
     self.view = setup_log_view(self.view, self.request, guid=self.user._id)