def setUp(self): self.factory = RequestFactory() models.BlogPost.objects.all().delete()
def setUp(self): super(TestModelsTestCase, self).setUp() self.req = RequestFactory()
def setUp(self): """ Reset the cache so that no throttles will be active """ cache.clear() self.factory = RequestFactory()
def setUp(self): super(TestModelRead, self).setUp() self.req = RequestFactory()