def test_status(self): stub_http_response_with("simple_status", "get") app = DocRaptor(self.test_key) resp = app.status("test-id") assert "completed" == resp["status"] key = app._get_download_key(resp["download_url"]) assert "ffffffffffd74b4a993fcae917699ed7" == key