'L{client.RedirectAgent} resolves and follows relative I{URI}s in
redirects, preserving fragments in way that complies with the HTTP 1.1
bis draft.
@see: U{https://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-22#section-7.1.2}'

def test_relativeURIPreserveFragments(self):

    self._testRedirectURI('http://example.com/foo/bar#frag', '/baz?a', 'http://example.com/baz?a#frag')
    self._testRedirectURI('http://example.com/foo/bar', '/baz?a#frag2', 'http://example.com/baz?a#frag2')
