Commit a804c860 authored by Aurel's avatar Aurel

check inventory value when in archive


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17569 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5d6e823b
......@@ -337,7 +337,13 @@ class TestArchive(InventoryAPITestCase):
path_list = [self.inventory.getRelativeUrl()]
self.checkRelativeUrlNotInSQLPathList(path_list, connection_id=self.new_connection_id)
self.checkRelativeUrlInSQLPathList(path_list, connection_id=self.archive_connection_id)
# check inventory in archive now
self.pref.edit(preferred_archive=archive.getRelativeUrl())
get_transaction().commit()
self.tic()
self.assertEquals(100, getInventory(node=self.node.getRelativeUrl()))
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