def test_connection_lost_arg(self):
        # pretend we connected
        self.proto._connectionMade()

        self.proto.connectionLost(Failure(ConnectionLost("greetings")))

        messages = ' '.join([str(x[1]) + str(x[2]) for x in self.proto.log.mock_calls])
        self.assertTrue(messages in ' was lost ')
        self.assertTrue('greetings' in messages)
dataset/ETHPy150Open crossbario/autobahn-python/autobahn/twisted/test/test_protocol.py/ExceptionHandlingTests.test_connection_lost_arg/swapped operands of `in`