

def should_serve_and_redirect(self, request):
    ' Should serve mixture of package urls and redirect urls '
    ret = package_versions(self.package, request)
    f2name = self.package2.filename
    self.assertEqual(ret, {
        'pkgs': {
            self.package.filename: self.package.get_url(request),
            f2name: self.fallback_packages[f2name],
        },
    })

dataset/ETHPy150Open mathcamp/pypicloud/tests/test_simple.py PackageReadTestBase.should_serve_and_redirect/original