def test_SRVNoService(self):
        payload = dns.Record_SRV(port=5269, target='.', ttl=60)
        client.theResolver.results = [dns.RRHeader(name='example.org',
                                                   type=dns.SRV,
                                                   cls=dns.IN, ttl=60,
                                                   payload=payload)]
        self.connector.connect()

        self.assertNotIdentical(None, self.factory.reason)
        self.factory.reason.trap(DNSLookupError)
        self.assertEquals(self.reactor.tcpClients, [])
Test that connecting fails when no service is present.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/names/test/test_srvconnect.py/SRVConnectorTest.test_SRVNoService