def METHOD_NAME(self):
    # attach it to the connector
    connector = mock.Mock(name="connector")
    connector.master.caches.get_cache = self.get_cache
    self.cache_get_raises_exception = True
    # build an instance
    comp = self.TestConnectorComponent(connector)
    yield comp.getThing("foo", no_cache=1)