Lines Matching refs:resp
37 resp, lines = self.server.help()
38 self.assertTrue(resp.startswith("100 "), resp)
43 resp, groups = self.server.list()
49 resp, groups = self.server.list(self.GROUP_PAT)
57 resp = cm.exception.response
58 self.assertTrue(resp.startswith("500 "), resp)
64 resp, groups = self.server.newgroups(dt)
86 resp, descs = self.server.descriptions(self.GROUP_PAT)
89 resp.startswith("215 ") or resp.startswith("282 "), resp)
97 resp, count, first, last, group = result
103 self.assertTrue(resp.startswith("211 "), resp)
106 resp, date = self.server.date()
124 resp, count, first, last, name = self.server.group(self.GROUP_NAME)
125 resp, lines = self.server.xover(last - 5, last)
137 resp, count, first, last, name = self.server.group(self.GROUP_NAME)
140 resp, lines = self.server.over((start, None))
144 resp, lines = self.server.over((start, last))
154 resp, count, first, last, name = self.server.group(self.GROUP_NAME)
155 resp, lines = self.server.xhdr('subject', last)
159 def check_article_resp(self, resp, article, art_num=None): argument
170 resp, count, first, last, name = self.server.group(self.GROUP_NAME)
174 resp, head = self.server.head(art_num)
183 self.assertTrue(resp.startswith("221 "), resp)
184 self.check_article_resp(resp, head, art_num)
185 resp, body = self.server.body(art_num)
186 self.assertTrue(resp.startswith("222 "), resp)
187 self.check_article_resp(resp, body, art_num)
188 resp, article = self.server.article(art_num)
189 self.assertTrue(resp.startswith("220 "), resp)
190 self.check_article_resp(resp, article, art_num)
210 resp, caps = self.server.capabilities()
814 resp, date = self.server.date()
815 self.assertEqual(resp, "111 20100914001155")
820 resp = self.server.quit()
821 self.assertEqual(resp, "205 Bye!")
825 resp, help = self.server.help()
826 self.assertEqual(resp, "100 Legal commands")
835 resp, groups = self.server.list()
841 resp, groups = self.server.list("*distutils*")
849 resp, art_num, message_id = self.server.stat(3000234)
850 self.assertEqual(resp, "223 3000234 <45223423@example.com>")
853 resp, art_num, message_id = self.server.stat("<45223423@example.com>")
854 self.assertEqual(resp, "223 0 <45223423@example.com>")
865 resp, art_num, message_id = self.server.next()
866 self.assertEqual(resp, "223 3000237 <668929@example.org> retrieved")
871 resp, art_num, message_id = self.server.last()
872 self.assertEqual(resp, "223 3000234 <45223423@example.com> retrieved")
883 resp, groups = self.server.descriptions("comp.lang.python")
884 self.assertEqual(resp, '215 Descriptions in form "group description".')
888 resp, groups = self.server.descriptions("comp.lang.python*")
893 resp, groups = self.server.descriptions("comp.lang.pythonx")
897 resp, count, first, last, group = self.server.group("fr.comp.lang.python")
898 self.assertTrue(resp.startswith("211 "), resp)
912 resp, ids = self.server.newnews("comp.lang.python", dt)
917 self.assertEqual(resp, expected)
924 resp, ids = self.server.newnews("fr.comp.lang.python", dt)
925 self.assertEqual(resp, "230 An empty list of newsarticles follows")
948 resp, info = self.server.article()
949 self.assertEqual(resp, "220 3000237 <45223423@example.com>")
955 resp, info = self.server.article(3000234)
956 self.assertEqual(resp, "220 3000234 <45223423@example.com>")
962 resp, info = self.server.article("<45223423@example.com>")
963 self.assertEqual(resp, "220 0 <45223423@example.com>")
976 resp, info = self.server.article(file=f)
977 self.assertEqual(resp, "220 3000237 <45223423@example.com>")
996 resp, info = self.server.head()
997 self.assertEqual(resp, "221 3000237 <45223423@example.com>")
1003 resp, info = self.server.head(3000234)
1004 self.assertEqual(resp, "221 3000234 <45223423@example.com>")
1010 resp, info = self.server.head("<45223423@example.com>")
1011 self.assertEqual(resp, "221 0 <45223423@example.com>")
1023 resp, info = self.server.head(file=f)
1024 self.assertEqual(resp, "221 3000237 <45223423@example.com>")
1043 resp, info = self.server.body()
1044 self.assertEqual(resp, "222 3000237 <45223423@example.com>")
1050 resp, info = self.server.body(3000234)
1051 self.assertEqual(resp, "222 3000234 <45223423@example.com>")
1057 resp, info = self.server.body("<45223423@example.com>")
1058 self.assertEqual(resp, "222 0 <45223423@example.com>")
1070 resp, info = self.server.body(file=f)
1071 self.assertEqual(resp, "222 3000237 <45223423@example.com>")
1088 def check_over_xover_resp(self, resp, overviews): argument
1089 self.assertTrue(resp.startswith("224 "), resp)
1110 resp, overviews = self.server.xover(57, 59)
1111 self.check_over_xover_resp(resp, overviews)
1115 resp, overviews = self.server.over((57, 59))
1116 self.check_over_xover_resp(resp, overviews)
1146 resp = func(*func_args)
1153 resp = func(*func_args)
1155 return resp
1159 resp = self._check_post_ihave_sub(func, *args, file_factory=bytes)
1160 self.assertEqual(resp, success_resp)
1162 resp = self._check_post_ihave_sub(func, *args, file_factory=bytearray)
1163 self.assertEqual(resp, success_resp)
1165 resp = self._check_post_ihave_sub(func, *args, file_factory=io.BytesIO)
1166 self.assertEqual(resp, success_resp)
1170 resp = self._check_post_ihave_sub(func, *args, file_factory=iterlines)
1171 self.assertEqual(resp, success_resp)
1175 resp = self._check_post_ihave_sub(func, *args, file_factory=iterlines)
1176 self.assertEqual(resp, success_resp)