(self)
| 1646 | ('http://example.com?foo=bar#baz', 'boo')) |
| 1647 | |
| 1648 | def test_splitattr(self): |
| 1649 | splitattr = urllib.parse._splitattr |
| 1650 | self.assertEqual(splitattr('/path;attr1=value1;attr2=value2'), |
| 1651 | ('/path', ['attr1=value1', 'attr2=value2'])) |
| 1652 | self.assertEqual(splitattr('/path;'), ('/path', [''])) |
| 1653 | self.assertEqual(splitattr(';attr1=value1;attr2=value2'), |
| 1654 | ('', ['attr1=value1', 'attr2=value2'])) |
| 1655 | self.assertEqual(splitattr('/path'), ('/path', [])) |
| 1656 | |
| 1657 | def test_splitvalue(self): |
| 1658 | # Normal cases are exercised by other tests; test pathological cases |
nothing calls this directly
no test coverage detected