def test_snapshot_download_handler(self):
        headers = copy.deepcopy(self.default_headers)
        headers['X-Auth-Token'] = self.get_auth_token()
        snap_name = "fuel-snapshot-2015-06-23_11-32-13.tar.xz"

        resp = self.app.get(
            reverse('SnapshotDownloadHandler',
                    kwargs={'snapshot_name': snap_name}),
            headers=headers,
        )

        self.assertEqual(200, resp.status_code)
        self.assertEqual('/dump/' + snap_name,
                         resp.headers['X-Accel-Redirect'])
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/unit/test_logs_handlers.py/TestSnapshotDownload.test_snapshot_download_handler/original