예제 #1
0
 def test_long_https_angle_match(self):
     'Test a long https-address in angle brackets is matched'
     text = '<https://groups.example.com/people/a_very_long_user_id?show=Stufff>'
     r = uriMatcher.match(text)
     self.assertTrue(r)
예제 #2
0
 def test_http_angle_match(self):
     'Test an http-address in angle brackets matches'
     r = uriMatcher.match('<http://example.com/>')
     self.assertTrue(r)
예제 #3
0
 def test_http_path_match(self):
     'Test a http-address with a path is matched'
     r = uriMatcher.match('http://example.com/people/me')
     self.assertTrue(r)
예제 #4
0
 def test_http_query_match(self):
     'Test an http-address with a query string is matched'
     r = uriMatcher.match('http://example.com/people/me?show=Stufff')
     self.assertTrue(r)
예제 #5
0
 def test_https_match(self):
     'Test that an https-address is matched as a URI'
     r = uriMatcher.match('https://example.com')
     self.assertTrue(r)