(self)
| 475 | |
| 476 | # test_headerregistry.TestContentTypeHeader.quotes_inside_rfc2231_value |
| 477 | def test_get_param_with_quotes(self): |
| 478 | msg = email.message_from_string( |
| 479 | 'Content-Type: foo; bar*0="baz\\"foobar"; bar*1="\\"baz"') |
| 480 | self.assertEqual(msg.get_param('bar'), 'baz"foobar"baz') |
| 481 | msg = email.message_from_string( |
| 482 | "Content-Type: foo; bar*0=\"baz\\\"foobar\"; bar*1=\"\\\"baz\"") |
| 483 | self.assertEqual(msg.get_param('bar'), 'baz"foobar"baz') |
| 484 | |
| 485 | def test_get_param_linear_complexity(self): |
| 486 | # Ensure that email.message._parseparam() is fast. |
nothing calls this directly
no test coverage detected