(self)
| 624 | |
| 625 | |
| 626 | def test_info(self): |
| 627 | handler = self.start_server() |
| 628 | open_url = urllib.request.urlopen( |
| 629 | "http://localhost:%s" % handler.port) |
| 630 | with open_url: |
| 631 | info_obj = open_url.info() |
| 632 | self.assertIsInstance(info_obj, email.message.Message, |
| 633 | "object returned by 'info' is not an " |
| 634 | "instance of email.message.Message") |
| 635 | self.assertEqual(info_obj.get_content_subtype(), "plain") |
| 636 | |
| 637 | |
| 638 | def test_geturl(self): |
nothing calls this directly
no test coverage detected