'Test urljoin shortcut which also evaluates base-url through get_base_url().'

def test_urljoin_with_base_url(self):

    body = '<html><body><base    href="https://example.net"></body></html>'
    joined = self.response_class('http://www.example.com', body=body).urljoin('/test')
    absolute = 'https://example.net/test'
    self.assertEqual(joined, absolute)
    body = '<html><body><base    href="/elsewhere"></body></html>'
    joined = self.response_class('http://www.example.com', body=body).urljoin('test')
    absolute = 'http://www.example.com/test'
    self.assertEqual(joined, absolute)
    body = '<html><body><base    href="/elsewhere/"></body></html>'
    joined = self.response_class('http://www.example.com', body=body).urljoin('test')
    absolute = 'http://www.example.com/elsewhere/test'
    self.assertEqual(joined, absolute)
