

def should_serve(self, request):
    ' When requested, the endpoint should serve the packages '
    ret = package_versions(self.package, request)
    self.assertEqual(ret, {
        'pkgs': {
            self.package.filename: self.package.get_url(request),
        },
    })

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