'L{URL.__repr__} will display the canonical form of the URL, wrapped in
a L{URL.fromText} invocation, so that it is C{eval}-able but still easy
to read.'

def test_repr(self):

    self.assertEqual(repr(URL(scheme=u'http', host=u'foo', path=[u'bar'], query=[(u'baz', None), (u'k', u'v')], fragment=u'frob')), (u'URL.from_text(%s)' % (repr(u'http://foo/bar?baz&k=v#frob'),)))
