Esempio n. 1
0
 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)
Esempio n. 2
0
 def tearDown(self):
     gae_logout()
     super(SubscriptionVideoViewApiTestCase, self).tearDown()
Esempio n. 3
0
 def tearDown(self):
     gae_logout()
     mock.patch.stopall()
     super(BucketVideoApiTestCase, self).tearDown()
Esempio n. 4
0
 def tearDown(self):
     gae_logout()
     mock.patch.stopall()
     super(SubscriptionVideoApiTestCase, self).tearDown()