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