def test_listenDefaultHost(self):
        memoryReactor = MemoryReactor()
        for port in [memoryReactor.listenTCP(8242, Factory()),
                     memoryReactor.listenSSL(8242, Factory(), None)]:
            verifyObject(IListeningPort, port)
            address = port.getHost()
            verifyObject(IAddress, address)
            self.assertEquals(address.host, '0.0.0.0')
            self.assertEquals(address.port, 8242)
        port = memoryReactor.listenUNIX("/path/to/socket", Factory())
        verifyObject(IListeningPort, port)
        address = port.getHost()
        verifyObject(IAddress, address)
        self.assertEquals(address.name, "/path/to/socket")
Verification logic for L{test_deprecatedModule}.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_stringtransport.py/ReactorTests.test_listenDefaultHost--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/test/test_deprecate.py/ImportedModuleAttributeTests.checkOneWarning