Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(13)  |  Call(13)  |  Derive(0)  |  Import(0)

src/m/o/moztrap-HEAD/tests/view/manage/cases/test_views.py   moztrap(Download)
 
        self.assertRedirects(
            res,
            "{0}?filter-id={1}#caseversion-id-{2}".format(
                reverse("manage_cases"), cv.case.id, cv.id),
 
        self.assertRedirects(
            res,
            "{0}?filter-id={1}#caseversion-id-{2}".format(
                reverse("manage_cases"), cv.case.id, cv.id),
            )
 
        self.assertRedirects(res, reverse("auth_login") + "?next=" + self.url)
 
 
            )
 
        self.assertRedirects(res, "/")
 
 
 
        self.assertRedirects(
            res,
            reverse(
                "manage_caseversion_edit",

src/m/o/moztrap-HEAD/tests/view/test_views.py   moztrap(Download)
        res = self.get(status=302)
 
        self.assertRedirects(res, reverse("runtests"))
 
 
    def test_no_permission_redirects_to_results(self):
        """Users without execute permission are directed to results."""
        res = self.get(status=302)
 
        self.assertRedirects(res, reverse("results_runs"))

src/m/o/moztrap-HEAD/tests/view/users/test_views.py   moztrap(Download)
        res = self.get().forms["create-apikey-form"].submit()
 
        self.assertRedirects(res, self.url)
 
        ak = self.model.ApiKey.objects.get()

src/m/o/moztrap-HEAD/tests/view/results/test_views.py   moztrap(Download)
 
        self.assertRedirects(
            res, reverse("results_runs") + "?openfinder=1&filter-status=active")
 

src/m/o/moztrap-HEAD/tests/view/manage/test_views.py   moztrap(Download)
    def test_redirects_to_manage_runs_with_open_finder(self):
        """Redirects to the manage runs list, with manage finder open."""
        res = self.get(status=302)
 
        self.assertRedirects(res, reverse("manage_runs") + "?openfinder=1")