Ejemplo n.º 1
0
 def test_absolutePath(self):
     assert utils.makeURL("http://foo.bar.voing") == "http://foo.bar.voing"
Ejemplo n.º 2
0
 def test_pageWithPath(self):
     assert utils.makeURL("foo/bar/voing") == "foo/bar/voing"
     assert utils.makeURL("foo/bar/voing", orc="foo") == "foo/bar/voing?orc=foo"
Ejemplo n.º 3
0
 def test_list(self):
     assert utils.makeURL("foo/bar/voing", foo=["one", "two"]) ==\
            "foo/bar/voing?foo=one&foo=two"
Ejemplo n.º 4
0
 def test_page(self):
     assert utils.makeURL("foo", bar="voing", orc="foo") == "foo?bar=voing&orc=foo"
     assert utils.makeURL("foo") == "foo"
Ejemplo n.º 5
0
 def test_absolutePath(self):
     assert utils.makeURL("http://foo.bar.voing") == "http://foo.bar.voing"
Ejemplo n.º 6
0
 def test_list(self):
     assert utils.makeURL("foo/bar/voing", foo=["one", "two"]) ==\
            "foo/bar/voing?foo=one&foo=two"
Ejemplo n.º 7
0
 def test_pageWithPath(self):
     assert utils.makeURL("foo/bar/voing") == "foo/bar/voing"
     assert utils.makeURL("foo/bar/voing",
                          orc="foo") == "foo/bar/voing?orc=foo"
Ejemplo n.º 8
0
 def test_page(self):
     assert utils.makeURL("foo", bar="voing",
                          orc="foo") == "foo?bar=voing&orc=foo"
     assert utils.makeURL("foo") == "foo"