[CMF-checkins] CVS: CMF/CMFUid/tests - test_uidgeneration.py:1.7
Grégoire Weber
zope.org at incept.ch
Fri Aug 6 18:58:09 EDT 2004
Update of /cvs-repository/CMF/CMFUid/tests
In directory cvs.zope.org:/tmp/cvs-serv29268/tests
Modified Files:
test_uidgeneration.py
Log Message:
- added 'convert' method which converts a string type uid to the right type (query strings are strings and never integers)
=== CMF/CMFUid/tests/test_uidgeneration.py 1.6 => 1.7 ===
--- CMF/CMFUid/tests/test_uidgeneration.py:1.6 Thu Aug 5 12:07:46 2004
+++ CMF/CMFUid/tests/test_uidgeneration.py Fri Aug 6 18:58:09 2004
@@ -46,6 +46,13 @@
uid2 = generator()
self.failIfEqual(uid1, uid2)
self.failIfEqual(uid1, None)
+
+ def test_converter(self):
+ generator = self.root.portal_uidgenerator
+ uid = generator()
+ str_uid = str(uid)
+ result = generator.convert(str_uid)
+ self.assertEqual(result, uid)
def test_suite():
return TestSuite((
More information about the CMF-checkins
mailing list