def METHOD_NAME(self, reactor: MemoryReactor, clock: Clock) -> HomeServer:
    self.http_client = Mock(spec=["get_file"])
    self.http_client.get_file.side_effect = mock_get_file
    self.http_client.user_agent = b"Synapse Test"
    hs = self.setup_test_homeserver(
        proxied_blocklisted_http_client=self.http_client
    )
    return hs