def METHOD_NAME(self):
    reactor = Mock()
    config = Mock()
    config.SocksPort = []
    def boom(*args, **kw):
        raise RuntimeError("sad times at ridgemont high")
    config.save = boom
    try:
        yield agent_for_socks_port(reactor, config, '1234')
        self.fail("Should get an error")
    except RuntimeError as e:
        self.assertTrue("sad times at ridgemont high" in str(e))