def test_SRVNoResult(self):
        """
        Test connectTCP gets called with fallback parameters on empty result.
        """
        client.theResolver.results = []
        self.connector.connect()

        self.assertIsNone(self.factory.reason)
        self.assertEqual(
            self.reactor.tcpClients.pop()[:2], ('example.org', 'xmpp-server'))

        Test connectTCP gets called with fallback parameters on empty result.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_srvconnect.py