@defer.inlineCallbacks
    def test_remove_error(self):
        eph = torconfig.EphemeralHiddenService("80 127.0.0.1:80")
        eph.hostname = 'foo.onion'
        proto = Mock()
        proto.queue_command = Mock(return_value="it's not ok")

        try:
            yield eph.remove_from_tor(proto)
            self.fail("should have gotten exception")
        except __HOLE__ as e:
            pass
dataset/ETHPy150Open meejah/txtorcon/test/test_torconfig.py/EphemeralHiddenServiceTest.test_remove_error