def METHOD_NAME(self):
    with context.request_context(RequestFactory().get("/")):
        self.assertTrue(get_adapter().is_safe_url("http://foobar.com/"))
        self.assertTrue(get_adapter().is_safe_url("http://other_host/"))