Lines Matching refs:article
138 # The 'last' article is not necessarily part of the output (cancelled?)
149 # The "start-" article range form
153 # The "start-end" article range form
156 # The 'last' article is not necessarily part of the output (cancelled?)
169 def check_article_resp(self, resp, article, art_num=None):
170 self.assertIsInstance(article, nntplib.ArticleInfo)
172 self.assertEqual(article.number, art_num)
173 for line in article.lines:
176 self.assertNotIn(article.lines[-1], (b".", b".\n", b".\r\n"))
181 # Try to find an available article
188 # "423 No such article" => choose another one
192 self.skipTest("could not find a suitable article number")
198 resp, article = self.server.article(art_num)
200 self.check_article_resp(resp, article, art_num)
205 filtered_lines = [line for line in article.lines
703 self.push_lit("340 Input article; end with <CR-LF>.<CR-LF>")
715 message_id == "<i.am.an.article.you.will.want@example.com>"):
727 Subject: I am just a test article
729 Message-ID: <i.am.an.article.you.will.want@example.com>"""
732 This is just a test article.
995 self.assertEqual(lines[-4], b"This is just a test article.")
1000 self.assertEqual(lines[3], b"Message-ID: <i.am.an.article.you.will.want@example.com>")
1010 resp, info = self.server.article()
1017 resp, info = self.server.article(3000234)
1024 resp, info = self.server.article("<45223423@example.com>")
1032 self.server.article("<non-existent@example.com>")
1038 resp, info = self.server.article(file=f)
1047 b'Subject: I am just a test article\r\n'
1050 b'This is just a test article.\r\n'
1094 b'Subject: I am just a test article\r\n'
1097 b'This is just a test article.\r\n'
1141 b'Subject: I am just a test article\r\n'
1144 b'This is just a test article.\r\n'
1182 b'Subject: I am just a test article\r\n'
1184 b'Message-ID: <i.am.an.article.you.will.want@example.com>\r\n'
1186 b'This is just a test article.\r\n'
1250 "<i.am.an.article.you.will.want@example.com>")
1384 '3000234\tI am just a test article\t"Demo User" '
1393 'subject': 'I am just a test article',
1405 '3000234\tI am just a test article\t"Demo User" '
1416 '3000234\tI am just a test article\t"Demo User" '