def _setMechanism(self, name):
        feature = domish.Element((NS_XMPP_SASL, 'mechanisms'))
        feature.addElement('mechanism', content=name)
        self.xmlstream.features[(feature.uri, feature.name)] = feature

        self.init.setMechanism()
        return self.init.mechanism.name
Ensures that when you save a new reference to a field, the referenced object isn't altered
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/words/test/test_jabbersasl.py/SASLInitiatingInitializerSetMechanismTest._setMechanism--crossover with--dataset/ETHPy150Open MongoEngine/mongoengine/tests/document/delta.py/DeltaTest.test_referenced_object_changed_attributes