'Outside the context of the request, we should still get a request
that allows us to build an absolute URI.'

def test_get_request_or_stub(self):

    stub = get_request_or_stub()
    expected_url = 'http://{site_name}/foobar'.format(site_name=settings.SITE_NAME)
    self.assertEqual(stub.build_absolute_uri('foobar'), expected_url)
