@defer.inlineCallbacks
    def test_http_request_timeout(self):
        self.skip_if_no_hostname()
        s = network.HTTP({
            'interval': 1.0, 
            'service': 'http', 
            'ttl': 60,
            'timeout': 1,
            'url': 'http://1.1.1.1/'
        }, self._qb, None)

        event = yield s._get()
        self.assertEquals(event.state, 'critical')
        self.assertEquals(event.description in 'timeout', True)
dataset/ETHPy150Open calston/tensor/tensor/tests/test_sources.py/TestLinuxSources.test_http_request_timeout/swapped operands of `in`