def should_redirect(self, request):
        """ When requested, the endpoint should redirect to the fallback """
        ret = package_versions(self.package, request)
        self.assertEqual(ret.status_code, 302)
        self.assertEqual(ret.location,
                         self.fallback_url + self.package.name + '/')
dataset/ETHPy150Open mathcamp/pypicloud/tests/test_simple.py/PackageReadTestBase.should_redirect/original