def test_download(self):
        f = static_file(basename, root=root, download="foo.mp3")
        self.assertEqual('audio/mpeg', f.headers['Content-Type'])

        f = static_file(basename, root=root, download=True)
        self.assertEqual('attachment; filename="%s"' % basename, f.headers['Content-Disposition'])
        request.environ['HTTP_IF_MODIFIED_SINCE'] = time.strftime("%a, %d %b %Y %H:%M:%S GMT", time.gmtime(100))

        f = static_file(basename, root=root)
        self.assertEqual(open(__file__,'rb').read(), f.body.read())
Create a session instance and return it.
dataset/ETHPy150Open bottlepy/bottle/test/test_sendfile.py/TestSendFile.test_download--crossover with--dataset/ETHPy150Open google/simian/src/simian/auth/base.py/AuthSessionBase._Create