Lines Matching refs:httplib2
1 import httplib2
26 assert httplib2.parse_uri(a) == b
38 assert httplib2.urlnorm(a)[-1] == b
40 assert httplib2.urlnorm("http://localhost:80/") == httplib2.urlnorm(
45 httplib2.urlnorm("/")
47 except httplib2.RelativeURIError:
72 httplib2.urlnorm("http://WWW")[-1],
73 httplib2.safename(httplib2.urlnorm("http://www")[-1]),
102 result = httplib2.safename(data[0])
107 assert httplib2.safename("http://www") != httplib2.safename("https://www")
112 assert httplib2.safename(uri) != httplib2.safename(uri2)
114 assert len(httplib2.safename(uri2)) == 123
115 assert len(httplib2.safename(uri)) == 123