(self)
| 1799 | ('example.net', '/file#')) |
| 1800 | |
| 1801 | def test_splituser(self): |
| 1802 | splituser = urllib.parse._splituser |
| 1803 | self.assertEqual(splituser('User:Pass@www.python.org:080'), |
| 1804 | ('User:Pass', 'www.python.org:080')) |
| 1805 | self.assertEqual(splituser('@www.python.org:080'), |
| 1806 | ('', 'www.python.org:080')) |
| 1807 | self.assertEqual(splituser('www.python.org:080'), |
| 1808 | (None, 'www.python.org:080')) |
| 1809 | self.assertEqual(splituser('User:Pass@'), |
| 1810 | ('User:Pass', '')) |
| 1811 | self.assertEqual(splituser('User@example.com:Pass@www.python.org:080'), |
| 1812 | ('User@example.com:Pass', 'www.python.org:080')) |
| 1813 | |
| 1814 | def test_splitpasswd(self): |
| 1815 | # Some of the password examples are not sensible, but it is added to |
nothing calls this directly
no test coverage detected