'L{URL.click} interprets the given string as a relative URI-reference
and returns a new L{URL} interpreting C{self} as the base absolute URI.'

def test_click(self):

    urlpath = URL.fromText(theurl)
    self.assertEqual(u'http://www.foo.com/a/nice/path/?zot=23&zut', urlpath.click(u'').asText())
    self.assertEqual(u'http://www.foo.com/a/nice/path/click', urlpath.click(u'click').asText())
    self.assertEqual(u'http://www.foo.com/click', urlpath.click(u'/click').asText())
    self.assertEqual(u'http://www.foo.com/a/nice/path/?burp', urlpath.click(u'?burp').asText())
    self.assertNotIn(u'//foobar', urlpath.click(u'http://www.foo.com/foobar').asText())
    u = URL.fromText(u'http://www.foo.com/me/noquery')
    self.assertEqual(u'http://www.foo.com/me/17?spam=158', u.click(u'/me/17?spam=158').asText())
    u = URL.fromText(u'http://localhost/foo?abc=def')
    self.assertEqual(u.click(u'http://www.python.org').asText(), u'http://www.python.org')
