Commit e00eec68 authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Update tests for property in path list

parent 8ddaf72f
...@@ -514,8 +514,8 @@ class TestBusinessPackage(ERP5TypeTestCase): ...@@ -514,8 +514,8 @@ class TestBusinessPackage(ERP5TypeTestCase):
with self.assertRaises(ValueError) as context: with self.assertRaises(ValueError) as context:
portal_templates.installMultipleBusinessManager([managerA_new,]) portal_templates.installMultipleBusinessManager([managerA_new,])
self.assertTrue('Trying to remove changes at ZODB at test_folder' in self.assertTrue('Trying to remove changes at ZODB at test_folder#short_title'
context.exception) in context.exception)
def test_useCase_VI(self): def test_useCase_VI(self):
""" """
...@@ -599,7 +599,7 @@ class TestBusinessPackage(ERP5TypeTestCase): ...@@ -599,7 +599,7 @@ class TestBusinessPackage(ERP5TypeTestCase):
portal_templates.installMultipleBusinessManager([managerA_new,]) portal_templates.installMultipleBusinessManager([managerA_new,])
self.assertEquals(test_folder.getProperty('short_title'), '') self.assertIn(test_folder.getProperty('short_title'), ('', None))
def test_useCase_VII(self): def test_useCase_VII(self):
""" """
...@@ -763,12 +763,13 @@ class TestBusinessPackage(ERP5TypeTestCase): ...@@ -763,12 +763,13 @@ class TestBusinessPackage(ERP5TypeTestCase):
with self.assertRaises(ValueError) as context: with self.assertRaises(ValueError) as context:
portal_templates.installMultipleBusinessManager([managerA_new,]) portal_templates.installMultipleBusinessManager([managerA_new,])
self.assertTrue('Object at test_folder removed by user' in self.assertTrue('Object at test_folder#short_title removed by user' in
context.exception) context.exception)
def test_useCase_IX(self): def test_useCase_IX(self):
""" """
Case IX: Case IX:
A A _ : _
""" """
portal_templates = self.portal.portal_templates portal_templates = self.portal.portal_templates
managerA = self._createBusinessManager() managerA = self._createBusinessManager()
...@@ -796,9 +797,6 @@ class TestBusinessPackage(ERP5TypeTestCase): ...@@ -796,9 +797,6 @@ class TestBusinessPackage(ERP5TypeTestCase):
installed_test_folder = self.portal.restrictedTraverse(folder_path) installed_test_folder = self.portal.restrictedTraverse(folder_path)
self.assertEquals(installed_test_folder.getTitle(), 'couscous') self.assertEquals(installed_test_folder.getTitle(), 'couscous')
# Delete the object again from ZODB
self.portal.manage_delObjects([test_folder.getId(),])
# Set empty path item as path_item in managerA # Set empty path item as path_item in managerA
managerA._setTemplatePathList([]) managerA._setTemplatePathList([])
...@@ -1012,7 +1010,7 @@ class TestBusinessPackage(ERP5TypeTestCase): ...@@ -1012,7 +1010,7 @@ class TestBusinessPackage(ERP5TypeTestCase):
# Install the Business Manager # Install the Business Manager
portal_templates.installMultipleBusinessManager([managerA_new,]) portal_templates.installMultipleBusinessManager([managerA_new,])
self.assertEquals(test_folder.getProperty('short_title'), 'new_foo') self.assertEquals(test_folder.getProperty('short_title'), 'foo')
test_folder.setProperty('short_title', 'new_foo') test_folder.setProperty('short_title', 'new_foo')
# Copy the Business Manager object, updated version of managerA # Copy the Business Manager object, updated version of managerA
...@@ -1113,8 +1111,8 @@ class TestBusinessPackage(ERP5TypeTestCase): ...@@ -1113,8 +1111,8 @@ class TestBusinessPackage(ERP5TypeTestCase):
with self.assertRaises(ValueError) as context: with self.assertRaises(ValueError) as context:
portal_templates.installMultipleBusinessManager([managerA_new,]) portal_templates.installMultipleBusinessManager([managerA_new,])
self.assertTrue('Trying to remove changes at ZODB at test_folder' in self.assertTrue('Trying to remove changes at ZODB at test_folder#short_title'
context.exception) in context.exception)
def test_useCase_XIII(self): def test_useCase_XIII(self):
...@@ -1292,8 +1290,8 @@ class TestBusinessPackage(ERP5TypeTestCase): ...@@ -1292,8 +1290,8 @@ class TestBusinessPackage(ERP5TypeTestCase):
with self.assertRaises(ValueError) as context: with self.assertRaises(ValueError) as context:
portal_templates.installMultipleBusinessManager([managerA_new,]) portal_templates.installMultipleBusinessManager([managerA_new,])
self.assertTrue('Trying to remove changes at ZODB at test_folder' in self.assertTrue('Trying to remove changes at ZODB at test_folder#short_title'
context.exception) in context.exception)
def _migrateCatalogBTToBM(self): def _migrateCatalogBTToBM(self):
""" """
......
...@@ -78,35 +78,35 @@ ...@@ -78,35 +78,35 @@
<string>W:713, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:713, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:745, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:745, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:757, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:757, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:787, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:788, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:806, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:804, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:833, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:831, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:847, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:845, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:875, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:873, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:888, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:886, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:919, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:917, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:930, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:928, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:959, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:957, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:973, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:971, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1007, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:1005, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1019, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:1017, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1048, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:1046, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1065, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:1063, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1094, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:1092, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1109, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:1107, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1139, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:1137, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1152, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:1150, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1184, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:1182, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1195, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:1193, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1224, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:1222, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1239, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:1237, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1271, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:1269, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1286, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:1284, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1312, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:1310, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 1 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1315, 4: Unused variable \'imported_manager\' (unused-variable)</string> <string>W:1313, 4: Unused variable \'imported_manager\' (unused-variable)</string>
<string>W:1303, 4: Unused variable \'portal_templates\' (unused-variable)</string> <string>W:1301, 4: Unused variable \'portal_templates\' (unused-variable)</string>
<string>W:1350, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 2 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:1348, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 2 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
<string>W:1389, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 2 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string> <string>W:1387, 4: Possible unbalanced tuple unpacking with sequence defined at line 142: left side has 2 label(s), right side has 0 value(s) (unbalanced-tuple-unpacking)</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
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