diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-07-27 03:35:00 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2024-01-13 14:32:35 +0100 |
commit | cd34dff98e7360f9994e4d4141ee9fe7db87c8b2 (patch) | |
tree | e8a5763fe602529f20baa75d98d03881c20e0fa3 | |
parent | c236467ad756e794e0ba2e8ff639522c5f784113 (diff) | |
download | nntplib-ending-dot.tar.gz |
Rewrite over-strict test for articles ending with a dot [v2]ending-dot
-rw-r--r-- | tests/test_nntplib.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_nntplib.py b/tests/test_nntplib.py index 52eb4e7..2b8a4e9 100644 --- a/tests/test_nntplib.py +++ b/tests/test_nntplib.py @@ -190,12 +190,12 @@ class NetworkedNNTPTestsMixin: self.skipTest("could not find a suitable article number") self.assertTrue(resp.startswith("221 "), resp) self.check_article_resp(resp, head, art_num) - self.assertNotIn(article.lines[-1], (b".", b".\n", b".\r\n")) + self.assertNotIn(head.lines[-1], (b".", b".\n", b".\r\n")) resp, body = self.server.body(art_num) self.assertTrue(resp.startswith("222 "), resp) self.check_article_resp(resp, body, art_num) - if article.lines: - self.assertFalse(article.lines[-1].endswith(b"\n")) + if body.lines: + self.assertFalse(body.lines[-1].endswith(b"\n")) resp, article = self.server.article(art_num) self.assertTrue(resp.startswith("220 "), resp) self.check_article_resp(resp, article, art_num) |