Lines Matching defs:base64
7 import base64
107 self.assertEqual(msg['content-transfer-encoding'], 'base64')
114 charset.body_encoding = None # Disable base64 encoding
123 charset.body_encoding = None # Disable base64 encoding
250 # Subpart 3 is base64
253 # Subpart 4 is base64 with a trailing newline, which
646 msg['content-transfer-encoding'] = 'base64'
730 msg['content-transfer-encoding'] = 'base64'
792 Content-Transfer-Encoding: base64
823 eq(msg['content-transfer-encoding'], 'base64')
1538 self.assertEqual(base64.decodebytes(bytes(payload, 'ascii')),
1599 self.assertEqual(base64.decodebytes(bytes(payload, 'ascii')),
1634 eq(msg['content-transfer-encoding'], 'base64')
2151 Content-Transfer-Encoding: base64
2199 Subject: Content-Transfer-Encoding: base64 and multipart
2211 Content-Transfer-Encoding: base64
2221 self.multipart_msg.format("\nContent-Transfer-Encoding: base64"))
3373 self.assertEqual(charset.get_body_encoding(), 'base64')
3384 eq(charset.get_body_encoding(), 'base64')
3388 eq(msg['content-transfer-encoding'], 'base64')
3948 # If we get 8bit bytes in a base64 body, we can just ignore them
3949 # as being outside the base64 alphabet and decode anyway. But
3952 cte='base64',
4118 Content-Transfer-Encoding: base64