X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/6409066b6abbe205fa64f844a01516f3f3de2553..a0d30541ee9349b8c62200c9aa6d4dbb2873fccb:/paperdoorknob_test.py diff --git a/paperdoorknob_test.py b/paperdoorknob_test.py index 83cf76a..7c48607 100644 --- a/paperdoorknob_test.py +++ b/paperdoorknob_test.py @@ -33,6 +33,14 @@ class FakeGlowficHTTPRequestHandler(BaseHTTPRequestHandler):
This is glowfic
+
+
+ You sure? +
+
+ Pretty sure. +
+
''' self.send_response(self._response_code()) @@ -92,6 +100,8 @@ class TestFetch(unittest.TestCase): post = paperdoorknob.Post(paperdoorknob.fetch( f"http://localhost:{self._port()}", s, TIMEOUT)) self.assertEqual(post.text().text.strip(), "This is glowfic") + self.assertEqual([r.text.strip() for r in post.replies()], + ["You sure?", "Pretty sure."]) def testFetchErrors(self) -> None: with requests.session() as s: