Back to index

python3.2  3.2.2
Public Member Functions
test.test_urllib.Utility_Tests Class Reference

List of all members.

Public Member Functions

def test_splitpasswd

Detailed Description

Testcase to test the various utility functions in the urllib.

Definition at line 1045 of file test_urllib.py.


Member Function Documentation

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

Definition at line 1048 of file test_urllib.py.

01048 
01049     def test_splitpasswd(self):
01050         """Some of password examples are not sensible, but it is added to
01051         confirming to RFC2617 and addressing issue4675.
01052         """
01053         self.assertEqual(('user', 'ab'),urllib.parse.splitpasswd('user:ab'))
01054         self.assertEqual(('user', 'a\nb'),urllib.parse.splitpasswd('user:a\nb'))
01055         self.assertEqual(('user', 'a\tb'),urllib.parse.splitpasswd('user:a\tb'))
01056         self.assertEqual(('user', 'a\rb'),urllib.parse.splitpasswd('user:a\rb'))
01057         self.assertEqual(('user', 'a\fb'),urllib.parse.splitpasswd('user:a\fb'))
01058         self.assertEqual(('user', 'a\vb'),urllib.parse.splitpasswd('user:a\vb'))
01059         self.assertEqual(('user', 'a:b'),urllib.parse.splitpasswd('user:a:b'))
01060 

Here is the call graph for this function:


The documentation for this class was generated from the following file: