'L{client._urljoin} preserves the fragment identifier from either the
new path or the base URL respectively, as specified in 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_preserveFragments(self):

    self.assertEqual(client._urljoin('http://foo.com/bar#frag', '/quux'), 'http://foo.com/quux#frag')
    self.assertEqual(client._urljoin('http://foo.com/bar', '/quux#frag2'), 'http://foo.com/quux#frag2')
    self.assertEqual(client._urljoin('http://foo.com/bar#frag', '/quux#frag2'), 'http://foo.com/quux#frag2')
