def test_login_required(self): gae_logout() response = self.client.get( reverse("bucket-video-api", kwargs={"bucket": "123"})) self.assertRedirects(response, "{}?next={}".format( reverse("djangae_login_redirect"), reverse("bucket-video-api", kwargs={"bucket": "123"})), fetch_redirect_response=False)
def tearDown(self): gae_logout() super(SubscriptionVideoViewApiTestCase, self).tearDown()
def tearDown(self): gae_logout() mock.patch.stopall() super(BucketVideoApiTestCase, self).tearDown()
def tearDown(self): gae_logout() mock.patch.stopall() super(SubscriptionVideoApiTestCase, self).tearDown()