@@ -2211,36 +2211,36 @@ def test_boundary_with_leading_space(self):
22112211
22122212 def test_boundary_stripped_only_once (self ):
22132213 eq = self .assertEqual
2214- msg = email .message_from_string ('''\
2215- MIME-Version: 1.0
2216- Content-Type: multipart/mixed; boundary="<>"
2214+ msg = email .message_from_string (textwrap . dedent ( '''\
2215+ MIME-Version: 1.0
2216+ Content-Type: multipart/mixed; boundary="<>"
22172217
2218- --<>
2219- Content-Type: text/plain
2218+ --<>
2219+ Content-Type: text/plain
22202220
22212221
2222- --<>
2223- Content-Type: text/plain
2222+ --<>
2223+ Content-Type: text/plain
22242224
2225- --<>--
2226- ''' )
2225+ --<>--
2226+ ''') )
22272227 self .assertTrue (msg .is_multipart ())
22282228 eq (msg .get_boundary (), '<>' )
22292229 eq (len (msg .get_payload ()), 2 )
22302230
2231- msg = email .message_from_string ('''\
2232- MIME-Version: 1.0
2233- Content-Type: multipart/mixed; boundary=<"">
2231+ msg = email .message_from_string (textwrap . dedent ( '''\
2232+ MIME-Version: 1.0
2233+ Content-Type: multipart/mixed; boundary=<"">
22342234
2235- --""
2236- Content-Type: text/plain
2235+ --""
2236+ Content-Type: text/plain
22372237
22382238
2239- --""
2240- Content-Type: text/plain
2239+ --""
2240+ Content-Type: text/plain
22412241
2242- --""--
2243- ''' )
2242+ --""--
2243+ ''') )
22442244 self .assertTrue (msg .is_multipart ())
22452245 eq (msg .get_boundary (), '""' )
22462246 eq (len (msg .get_payload ()), 2 )
0 commit comments