Commit c8a33d0c authored by Łukasz Nowak's avatar Łukasz Nowak

- add object with empty case and check folder behavoiur

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25478 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c0b01e5e
......@@ -485,6 +485,13 @@ class TestFolderMigration(ERP5TypeTestCase, LogInterceptor):
self.assertEqual(len(self.folder.objectIds(base_id=None)), 0)
self.assertEqual(len(self.folder.objectValues()), 3)
self.assertEqual(len(self.folder.objectValues(base_id=id_prefix)), 3)
# add object without base
obj4 = self.newContent(id='1')
self.assertEquals(obj4.getId(), '1')
self.assertEqual(len(self.folder.objectIds(base_id=None)), 1)
self.assertEqual(len(self.folder.objectValues()), 4)
self.assertEqual(len(self.folder.objectValues(base_id=id_prefix)), 3)
def test_suite():
suite = unittest.TestSuite()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment