示例#1
0
 def test_urlparse_password(self):
     """password should match expectation"""
     self.assertEqual(utils.urlparse(self.URI).password, 'bar')
示例#2
0
 def test_urlparse_path(self):
     """path should match expectation"""
     self.assertEqual(utils.urlparse(self.URI).path, '/qux')
示例#3
0
 def test_urlparse_username(self):
     """username should match expectation"""
     self.assertEqual(utils.urlparse(self.URI).username, 'foo')
示例#4
0
 def test_urlparse_hostname(self):
     """hostname should match expectation"""
     self.assertEqual(utils.urlparse(self.URI).hostname, 'baz')
示例#5
0
 def test_urlparse_port(self):
     """port should match expectation"""
     self.assertEqual(utils.urlparse(self.URI).port, 5444)
示例#6
0
 def test_urlparse_password(self):
     """password should match expectation"""
     self.assertEqual(utils.urlparse(self.URI).password, 'bar')
示例#7
0
 def test_urlparse_username(self):
     """username should match expectation"""
     self.assertEqual(utils.urlparse(self.URI).username, 'foo')
示例#8
0
 def test_urlparse_path(self):
     """path should match expectation"""
     self.assertEqual(utils.urlparse(self.URI).path, '/qux')
示例#9
0
 def test_urlparse_port(self):
     """port should match expectation"""
     self.assertEqual(utils.urlparse(self.URI).port, 5444)
示例#10
0
 def test_urlparse_hostname(self):
     """hostname should match expectation"""
     self.assertEqual(utils.urlparse(self.URI).hostname, 'baz')