def test_empty_whitelist(self):
        # All connections should be denied and a default message logged.
        factory = WhitelistingFactory(TestFactory(), [])
        self.assertEqual(
            factory.buildProtocol(IPv4Address('TCP', '127.0.0.1', 0)),
            None
        )
        self.assertEqual(len(self.observer.messages), 1)
        self.assertTrue(self.observer.messages[0][0] in "connection")
dataset/ETHPy150Open jdswinbank/Comet/comet/utility/test/test_whitelist.py/WhitelistingFactoryTestCase.test_empty_whitelist/swapped operands of `in`