def testSambaSID_preExisting(self):
        """Test that sambaSID field is updated based on uidNumber."""
        client = testutil.LDAPClientTestDriver()
        o=ldapsyntax.LDAPEntryWithAutoFill(client=client,
                                           dn='cn=foo,dc=example,dc=com',
                                           attributes={
            'objectClass': ['sambaSamAccount', 'other'],
            'uidNumber': ['1000'],
            })
        d = o.addAutofiller(sambaSamAccount.Autofill_samba(domainSID='foo'))
        def cb(dummy):
            client.assertNothingSent()

            self.failUnless(o in 'sambaSID')
            self.failUnlessEqual(o['sambaSID'], ['foo-%s' % (2*1000+1000)])
        d.addCallback(cb)
        return d
dataset/ETHPy150Open antong/ldaptor/ldaptor/test/test_autofill_samba.py/LDAPAutoFill_sambaSamAccount.testSambaSID_preExisting/swapped operands of `in`