[Zope-Checkins] CVS: Products/AdaptableStorage/tests - Zope2TestBase.py:1.2

Shane Hathaway shane@zope.com
Tue, 7 Jan 2003 10:14:33 -0500


Update of /cvs-repository/Products/AdaptableStorage/tests
In directory cvs.zope.org:/tmp/cvs-serv26883/tests

Modified Files:
	Zope2TestBase.py 
Log Message:
Fixed bugs:

- NameError in SQLUserList, fixed.

- FSUserList left lines alone that it didn't recognize, which looked
odd when pickles were involved.  Now it removes unparseable lines when
writing.

- UserFolderSerializer wasn't adding all of the unmanaged persistent
objects to the event.


=== Products/AdaptableStorage/tests/Zope2TestBase.py 1.1 => 1.2 ===
--- Products/AdaptableStorage/tests/Zope2TestBase.py:1.1	Tue Jan  7 00:07:40 2003
+++ Products/AdaptableStorage/tests/Zope2TestBase.py	Tue Jan  7 10:14:29 2003
@@ -225,8 +225,12 @@
             f._doAddUser('joe', '123', ('Geek',), ())
             get_transaction().commit()
 
+            # Be sure ZODB sees the unmanaged persistent objects
             u = f.data['ned']
-            self.assertEqual(u._p_oid, 'unmanaged')  # Be sure ZODB sees it
+            self.assertEqual(f.data._p_oid, 'unmanaged')
+            self.assertEqual(u._p_oid, 'unmanaged')
+
+            # Make some changes
             u.roles = ('Knight', 'King')
             u.domains = ('localhost',)
             del f.data['joe']           # Test user deletion