'Some of the password examples are not sensible, but it is added to
confirming to RFC2617 and addressing issue4675.'

def test_splitpasswd(self):

    self.assertEqual(('user', 'ab'), urllib.splitpasswd('user:ab'))
    self.assertEqual(('user', 'a\nb'), urllib.splitpasswd('user:a\nb'))
    self.assertEqual(('user', 'a DCTB b'), urllib.splitpasswd('user:a DCTB b'))
    self.assertEqual(('user', 'a\rb'), urllib.splitpasswd('user:a\rb'))
    self.assertEqual(('user', 'a\x0cb'), urllib.splitpasswd('user:a\x0cb'))
    self.assertEqual(('user', 'a\x0bb'), urllib.splitpasswd('user:a\x0bb'))
    self.assertEqual(('user', 'a:b'), urllib.splitpasswd('user:a:b'))
    self.assertEqual(('user', 'a    b'), urllib.splitpasswd('user:a    b'))
    self.assertEqual(('user    2', 'ab'), urllib.splitpasswd('user    2:ab'))
    self.assertEqual(('user+1', 'a+b'), urllib.splitpasswd('user+1:a+b'))
