--- /dev/null
+<html>
+ <body>
+ <div class="post-container post-post">
+ <div class="post-edit-box">We don't want edit boxes</div>
+ This is glowfic
+ <div class="post-footer">We don't want footers</div>
+ </div>
+ <div class="flat-post-replies">
+ <div class="post-container post-reply">
+ <div class="post-edit-box">We don't want edit boxes</div>
+ You <em>sure</em>?
+ <div class="post-footer">We don't want footers</div>
+ </div>
+ <div class="post-container post-reply">
+ Pretty sure.
+ </div>
+ </div>
+ </body>
+</html>
return 200
def do_GET(self) -> None:
- body = b'''<html>
- <body>
- <div class="post-container post-post">
- <div class="post-edit-box">We don't want edit boxes</div>
- This is glowfic
- <div class="post-footer">We don't want footers</div>
- </div>
- <div class="flat-post-replies">
- <div class="post-container post-reply">
- <div class="post-edit-box">We don't want edit boxes</div>
- You <em>sure</em>?
- <div class="post-footer">We don't want footers</div>
- </div>
- <div class="post-container post-reply">
- Pretty sure.
- </div>
- </div>
- </body>
-</html>'''
+ 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)))