

def _setMechanism(self, name):
    '\n        Set up the XML Stream to have a SASL feature with the given mechanism.\n        '
    feature = domish.Element((NS_XMPP_SASL, 'mechanisms'))
    feature.addElement('mechanism', content=name)
    self.xmlstream.features[(feature.uri, feature.name)] = feature
    self.init.setMechanism()
    return name.init.mechanism.name

dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/words/test/test_jabbersasl.py SASLInitiatingInitializerSetMechanismTest._setMechanism/VarMisuse@66/119 `self`->`name`