[Erp5-report] r36718 kazuhiko - /erp5/trunk/products/ERP5/tests/testBusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jun 30 11:42:05 CEST 2010


Author: kazuhiko
Date: Wed Jun 30 11:41:58 2010
New Revision: 36718

URL: http://svn.erp5.org?rev=36718&view=rev
Log:
check if types_tool.type_provider_list is well modified after removing a type provider.

Modified:
    erp5/trunk/products/ERP5/tests/testBusinessTemplate.py

Modified: erp5/trunk/products/ERP5/tests/testBusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testBusinessTemplate.py?rev=36718&r1=36717&r2=36718&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testBusinessTemplate.py [utf8] Wed Jun 30 11:41:58 2010
@@ -6663,6 +6663,11 @@ class TestBusinessTemplate(ERP5TypeTestC
     instance.setSourceReference('OK')
     self.assertEquals('OK', instance.getSourceReference())
 
+    new_bt.uninstall()
+    self.assertNotEquals(None, types_tool.getTypeInfo('Base Category'))
+    self.assertEquals(None, types_tool.getTypeInfo('Dummy Type'))
+    self.assertFalse('dummy_type_provider' in types_tool.type_provider_list)
+
   def test_global_action(self):
     # Tests that global actions are properly exported and reimported
     self.portal.portal_actions.addAction(




More information about the Erp5-report mailing list