Update of /cvsroot/pywin32/pywin32/win32/test
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22042/win32/test
Modified Files:
test_security.py
Log Message:
Remove __cmp__ and tp_compare slots from PySIDs and return
Py_NotImplemented in richcmp functions when faced with different types.
Index: test_security.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/test/test_security.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_security.py 7 Jan 2009 06:03:29 -0000 1.6
--- test_security.py 4 Feb 2009 04:04:20 -0000 1.7
***************
*** 19,22 ****
--- 19,37 ----
win32security.LookupAccountName('','Administrator')[0])
+ def testNESID(self):
+ self.failUnless(self.pwr_sid==self.pwr_sid)
+ self.failUnless(self.pwr_sid!=self.admin_sid)
+
+ def testNEOther(self):
+ self.failUnless(self.pwr_sid!=None)
+ self.failUnless(None!=self.pwr_sid)
+ self.failIf(self.pwr_sid==None)
+ self.failIf(None==self.pwr_sid)
+ self.failIfEqual(None, self.pwr_sid)
+
+ def testSIDInDict(self):
+ d = dict(foo=self.pwr_sid)
+ self.failUnlessEqual(d['foo'], self.pwr_sid)
+
def testBuffer(self):
self.failUnlessEqual(ob2memory(win32security.LookupAccountName('','Administrator')[0]),
|