(self)
| 377 | self.assertEqual(data, b'\n'.join(lines[1:])) |
| 378 | |
| 379 | def test_as_bytes_policy(self): |
| 380 | msg = self._msgobj('msg_01.txt') |
| 381 | newpolicy = msg.policy.clone(linesep='\r\n') |
| 382 | fullrepr = msg.as_bytes(policy=newpolicy) |
| 383 | s = BytesIO() |
| 384 | g = BytesGenerator(s,policy=newpolicy) |
| 385 | g.flatten(msg) |
| 386 | self.assertEqual(fullrepr, s.getvalue()) |
| 387 | |
| 388 | # test_headerregistry.TestContentTypeHeader.bad_params |
| 389 | def test_bad_param(self): |
nothing calls this directly
no test coverage detected