def setUp(self): self.auth = authentication.RestAnonymousAuthentication() self.request = RequestFactory().post('/api/whatever') unpin_this_thread()
def setUp(self): self.auth = authentication.RestAnonymousAuthentication() self.request = RequestFactory().get('/')