Home
last modified time | relevance | path

Searched refs:get_payload (Results 1 – 25 of 44) 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 …]
/external/python/cpython3/Lib/test/test_email/
Dtest_email.py106 self.assertEqual(msg.get_payload(decode=True), data)
107 self.assertEqual(msg.get_payload(), '0JDQkdCS\n')
116 self.assertEqual(msg.get_payload(decode=True), data)
125 self.assertEqual(msg.get_payload(decode=True), data)
130 self.assertEqual(msg.get_payload(), [])
161 filenames = [p.get_filename() for p in msg.get_payload()]
165 subpart = msg.get_payload(1)
172 filenames = [p.get_filename() for p in msg.get_payload()]
241 eq(msg.get_payload(decode=True), None)
243 eq(msg.get_payload(0).get_payload(decode=True),
[all …]
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_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.py621 self.assertEqual(part.get_payload(), payload)
633 self.assertEqual(len(m.get_payload()), 0)
638 self.assertEqual(len(m.get_payload()), 1)
662 self.assertEqual(m.get_payload(0).policy.content_manager, 'foo')
680 self.assertEqual(len(m.get_payload()), 1)
683 part = m.get_payload()[0]
685 self.assertEqual(len(m.get_payload()), 2)
687 part = m.get_payload()[1]
689 self.assertEqual(part.get_payload(), 'test')
715 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/autotest/site_utils/
Dgmail_lib.py70 def get_payload(self): member in Message
110 userId='me', body=message.get_payload()).execute()
/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/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/cpython3/Lib/test/
Dtest_mailbox.py32 self.assertEqual(len(msg.get_payload()), len(_sample_payloads))
34 part = msg.get_payload(i)
37 self.assertEqual(part.get_payload(), payload)
143 self.assertEqual(self._box[key].get_payload(),
231 self.assertEqual(msg.get_payload(), '0\n')
239 self.assertEqual(msg.get_payload(), '1\n')
246 self.assertEqual(msg.get_payload(), '0\n')
258 self.assertEqual(msg0.get_payload(), '0\n')
351 self.assertLess(int(value.get_payload()), repetitions)
431 self.assertEqual(self._box.pop(key0).get_payload(), '0\n')
[all …]
/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/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/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/cpython2/Doc/includes/
Demail-unpack.py63 fp.write(part.get_payload(decode=True))
/external/python/cpython3/Lib/importlib/metadata/
D_adapters.py51 headers.append(('Description', self.get_payload()))
/external/python/setuptools/setuptools/_vendor/importlib_metadata/
D_adapters.py51 headers.append(('Description', self.get_payload()))

12