Commit 3ca5cfd2 authored by Jérome Perrin's avatar Jérome Perrin

BT5: missing test for getInstalledBusinessTemplate with never installed BT

parent 89be9bdc
...@@ -340,6 +340,15 @@ class TestTemplateTool(ERP5TypeTestCase): ...@@ -340,6 +340,15 @@ class TestTemplateTool(ERP5TypeTestCase):
self.assertEqual(None, self.assertEqual(None,
self.portal.portal_templates.getInstalledBusinessTemplate('test_bt_%s' % self.id())) self.portal.portal_templates.getInstalledBusinessTemplate('test_bt_%s' % self.id()))
def test_getInstalledBusinessTemplate_never_installed(self):
never_installed_bt = self.portal.portal_templates.newContent(
portal_type='Business Template',
title='never_installed_bt_%s' % self.id())
self.tic()
self.assertEqual(
None,
self.portal.portal_templates.getInstalledBusinessTemplate('never_installed_bt_%s' % self.id()))
def test_revision(self): def test_revision(self):
template_tool = self.portal.portal_templates template_tool = self.portal.portal_templates
getInstalledRevision = template_tool.getInstalledBusinessTemplateRevision getInstalledRevision = template_tool.getInstalledBusinessTemplateRevision
......
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