Home
last modified time | relevance | path

Searched refs:get_payload (Results 1 – 25 of 41) sorted by relevance

12

/external/python/cpython2/Lib/email/test/
Dtest_email_renamed.py141 filenames = [p.get_filename() for p in msg.get_payload()]
145 subpart = msg.get_payload(1)
152 filenames = [p.get_filename() for p in msg.get_payload()]
187 eq(msg.get_payload(decode=True), None)
189 eq(msg.get_payload(0).get_payload(decode=True),
192 eq(msg.get_payload(1).get_payload(decode=True),
195 eq(msg.get_payload(2).get_payload(decode=True),
199 eq(msg.get_payload(3).get_payload(decode=True),
202 eq(msg.get_payload(4).get_payload(decode=True),
211 eq(msg.get_payload(decode=True), 'hello world')
[all …]
Dtest_email.py146 filenames = [p.get_filename() for p in msg.get_payload()]
150 subpart = msg.get_payload(1)
157 filenames = [p.get_filename() for p in msg.get_payload()]
215 eq(msg.get_payload(decode=True), None)
217 eq(msg.get_payload(0).get_payload(decode=True),
220 eq(msg.get_payload(1).get_payload(decode=True),
223 eq(msg.get_payload(2).get_payload(decode=True),
227 eq(msg.get_payload(3).get_payload(decode=True),
230 eq(msg.get_payload(4).get_payload(decode=True),
239 eq(msg.get_payload(decode=True), 'hello world')
[all …]
Dtest_email_codecs.py60 ustr = unicode(msg.get_payload(), msg.get_content_charset())
Dtest_email_codecs_renamed.py60 ustr = unicode(msg.get_payload(), msg.get_content_charset())
/external/python/cpython3/Lib/test/test_email/
Dtest_defect_handling.py59 inner = msg.get_payload(0)
87 self.assertIsInstance(msg.get_payload(), str)
194 bad = outer.get_payload(1).get_payload(0)
204 self.assertEqual(msg.get_payload(), 'body')
219 self.assertEqual(msg.get_payload(), 'not a header\nTo: abc\n\nb\n')
234 payload = msg.get_payload(decode=True)
251 payload = msg.get_payload(decode=True)
268 payload = msg.get_payload(decode=True)
298 self.assertEqual(len(msg.get_payload()), 2)
299 self.assertEqual(msg.get_payload(1).get_payload(), 'Alternative 2\n')
Dtest_email.py105 self.assertEqual(msg.get_payload(decode=True), data)
106 self.assertEqual(msg.get_payload(), '0JDQkdCS\n')
115 self.assertEqual(msg.get_payload(decode=True), data)
124 self.assertEqual(msg.get_payload(decode=True), data)
129 self.assertEqual(msg.get_payload(), [])
160 filenames = [p.get_filename() for p in msg.get_payload()]
164 subpart = msg.get_payload(1)
171 filenames = [p.get_filename() for p in msg.get_payload()]
240 eq(msg.get_payload(decode=True), None)
242 eq(msg.get_payload(0).get_payload(decode=True),
[all …]
Dtest_contentmanager.py87 self.assertEqual(m.get_payload(), msg_obj)
104 self.assertEqual(m.get_payload(), msg_obj)
132 self.assertIsNone(m.get_payload())
303 self.assertEqual(m.get_payload(decode=True).decode('utf-8'), content)
316 self.assertEqual(m.get_payload(decode=True).decode('utf-8'), '\n')
329 self.assertEqual(m.get_payload(decode=True).decode('utf-8'), content)
342 self.assertEqual(m.get_payload(decode=True).decode('utf-8'), content)
357 self.assertEqual(m.get_payload(decode=True).decode('utf-8'), content)
370 self.assertEqual(m.get_payload(decode=True).decode('utf-8'), content)
387 self.assertEqual(m.get_payload(decode=True).decode('utf-8'), content)
[all …]
Dtest_message.py617 self.assertEqual(part.get_payload(), payload)
629 self.assertEqual(len(m.get_payload()), 0)
634 self.assertEqual(len(m.get_payload()), 1)
658 self.assertEqual(m.get_payload(0).policy.content_manager, 'foo')
676 self.assertEqual(len(m.get_payload()), 1)
679 part = m.get_payload()[0]
681 self.assertEqual(len(m.get_payload()), 2)
683 part = m.get_payload()[1]
685 self.assertEqual(part.get_payload(), 'test')
711 self.assertIsNone(m.get_payload())
[all …]
Dtest_asian_codecs.py66 ustr = msg.get_payload(decode=True).decode(msg.get_content_charset())
75 ustr = msg.get_payload(decode=True).decode(msg.get_content_charset())
/external/python/cpython3/Lib/email/
Dencoders.py31 orig = msg.get_payload(decode=True)
43 orig = msg.get_payload(decode=True)
52 orig = msg.get_payload(decode=True)
Diterators.py28 for subpart in self.get_payload():
40 payload = subpart.get_payload(decode=decode)
70 for subpart in msg.get_payload():
Dgenerator.py235 payload = msg.get_payload()
248 payload = msg.get_payload()
263 subparts = msg.get_payload()
332 for part in msg.get_payload():
362 g.flatten(msg.get_payload(0), unixfrom=False, linesep=self._NL)
489 print(part.get_payload(decode=False), file=self)
Dcontentmanager.py65 content = msg.get_payload(decode=True)
72 return msg.get_payload(decode=True)
78 return msg.get_payload(0)
90 return bytes(msg.get_payload(0))
/external/python/cpython2/Lib/email/
Dencoders.py44 orig = msg.get_payload()
56 orig = msg.get_payload()
65 orig = msg.get_payload()
Diterators.py28 for subpart in self.get_payload():
41 payload = subpart.get_payload(decode=decode)
72 for subpart in msg.get_payload():
Dgenerator.py173 payload = msg.get_payload()
190 subparts = msg.get_payload()
258 for part in msg.get_payload():
286 payload = msg.get_payload()
288 g.flatten(msg.get_payload(0), unixfrom=False)
334 print >> self, part.get_payload(decode=True)
/external/python/cpython2/Doc/library/
Demail.iterators.rst23 Optional *decode* is passed through to :meth:`Message.get_payload
24 <email.message.Message.get_payload>`.
/external/python/apitools/apitools/base/py/
Dbatch.py387 content = msg.get_payload()
468 for part in mime_response.get_payload():
470 response = self._DeserializeResponse(part.get_payload())
/external/autotest/site_utils/
Dgmail_lib.py85 def get_payload(self): member in Message
125 userId='me', body=message.get_payload()).execute()
/external/python/cpython3/Doc/includes/
Demail-alternative.py47 msg.get_payload()[1].add_related(img.read(), 'image', 'jpeg',
Demail-unpack.py49 fp.write(part.get_payload(decode=True))
/external/python/cpython3/Doc/library/
Demail.iterators.rst26 Optional *decode* is passed through to :meth:`Message.get_payload
27 <email.message.Message.get_payload>`.
/external/python/cpython3/Lib/test/
Dtest_mailbox.py31 self.assertEqual(len(msg.get_payload()), len(_sample_payloads))
33 part = msg.get_payload(i)
36 self.assertEqual(part.get_payload(), payload)
142 self.assertEqual(self._box[key].get_payload(),
230 self.assertEqual(msg.get_payload(), '0\n')
238 self.assertEqual(msg.get_payload(), '1\n')
245 self.assertEqual(msg.get_payload(), '0\n')
257 self.assertEqual(msg0.get_payload(), '0\n')
350 self.assertLess(int(value.get_payload()), repetitions)
430 self.assertEqual(self._box.pop(key0).get_payload(), '0\n')
[all …]
/external/python/cpython2/Lib/test/
Dtest_mailbox.py33 self.assertEqual(len(msg.get_payload()), len(_sample_payloads))
35 part = msg.get_payload(i)
38 self.assertEqual(part.get_payload(), payload)
140 self.assertEqual(msg.get_payload(), '0\n')
156 self.assertEqual(msg.get_payload(), '0\n')
168 self.assertEqual(msg0.get_payload(), '0\n')
252 self.assertLess(int(value.get_payload()), repetitions)
340 self.assertEqual(self._box.pop(key0).get_payload(), '0\n')
345 self.assertEqual(self._box.pop(key2).get_payload(), '2\n')
348 self.assertEqual(self._box.pop(key1).get_payload(), '1\n')
[all …]
/external/python/cpython2/Doc/includes/
Demail-unpack.py63 fp.write(part.get_payload(decode=True))

12