def test_channel_closed(self):
        ch = mock()
        ch.channel_id = 42
        self.connection._channels[42] = ch

        self.connection._channel_closed(ch)
        assert_false(self.connection._channels in 42)

        ch.channel_id = 500424834
        self.connection._channel_closed(ch)
dataset/ETHPy150Open agoragames/haigha/tests/unit/connection_test.py/ConnectionTest.test_channel_closed/swapped operands of `in`