From a48f185c958616995c393ef339195364f27d081b Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Wed, 30 Jun 2010 09:41:58 +0000 Subject: [PATCH] check if types_tool.type_provider_list is well modified after removing a type provider. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36718 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testBusinessTemplate.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/product/ERP5/tests/testBusinessTemplate.py b/product/ERP5/tests/testBusinessTemplate.py index abf0c4eebb..c4974b9323 100644 --- a/product/ERP5/tests/testBusinessTemplate.py +++ b/product/ERP5/tests/testBusinessTemplate.py @@ -6663,6 +6663,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): 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( -- 2.30.9