Commit ce879ddf authored by Romain Courteaud's avatar Romain Courteaud

slapos_configurator: test

parent 7a51007f
......@@ -57,7 +57,9 @@ class TestSlapOSConfigurator(SlapOSTestCaseMixin):
invoking checkConsistency """
pref_tool = self.portal.portal_preferences
self.portal.portal_preferences.fixConsistency()
self.assertEqual(pref_tool.checkConsistency(), [])
consistency_list = pref_tool.checkConsistency()
self.assertEqual(len(consistency_list), 1)
self.assertEqual(str(consistency_list[0]), 'The System Preference subscription assignment should have a destination_project')
# Check if configuration is properly set:
consistency_list = pref_tool.slapos_default_system_preference.SystemPreference_checkSystemPreferenceConsistency()
......
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