def test_schemeEmpty(self):
        uri = b'pubsub.example.org'
        self.assertRaises(gateway.XMPPURIParseError,
                          gateway.getServiceAndNode, uri)
Iterating over the keys of an LDAP object gives expected results.
dataset/ETHPy150Open ralphm/idavoll/idavoll/test/test_gateway.py/GetServiceAndNodeTest.test_schemeEmpty--crossover with--dataset/ETHPy150Open twisted/ldaptor/ldaptor/test/test_ldapsyntax.py/LDAPSyntaxBasics.testKeys