X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/41b11505f297962d099b75a0372a4068e26773a5..23dabdf5c5133e06fbc44763225cda1ab72e668e:/testing/fakeserver.py
diff --git a/testing/fakeserver.py b/testing/fakeserver.py
index 2ed8149..fbef2e5 100644
--- a/testing/fakeserver.py
+++ b/testing/fakeserver.py
@@ -16,31 +16,14 @@ class FakeGlowficHTTPRequestHandler(BaseHTTPRequestHandler):
return 200
def do_GET(self) -> None:
- body = b'''
-
-
-
We don't want edit boxes
- This is glowfic
-
-
-
-
-
We don't want edit boxes
- You
sure?
-
-
-
- Pretty sure.
-
-
-
-'''
+ self._notify_server()
+ with open("testdata/this-is-glowfic.html", "rb") as f:
+ body = f.read(9999)
self.send_response(self._response_code())
self.send_header("Content-type", "text/html")
self.send_header("Content-Length", str(len(body)))
self.end_headers()
self.wfile.write(body)
- self._notify_server()
class FakeGlowficServer():