Commit 4ebabd62 authored by Łukasz Nowak's avatar Łukasz Nowak

Setup Portal Certificate Authority required by test.

parent 24a4ed2b
# Copyright (c) 2002-2012 Nexedi SA and Contributors. All Rights Reserved.
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.Vifib.tests.testVifibSlapWebService import \
TestVifibSlapWebServiceMixin
import transaction
class TestSlapOSCorePersonRequest(ERP5TypeTestCase):
class TestSlapOSCorePersonRequest(TestVifibSlapWebServiceMixin):
def generateNewId(self):
return self.getPortalObject().portal_ids.generateNewId(
......@@ -15,6 +16,8 @@ class TestSlapOSCorePersonRequest(ERP5TypeTestCase):
portal = self.getPortalObject()
new_id = self.generateNewId()
self.setupPortalCertificateAuthority()
# Clone software release document
software_release = portal.software_release_module.template_software_release.\
Base_createCloneDocument(batch_mode=1)
......@@ -59,6 +62,9 @@ class TestSlapOSCorePersonRequest(ERP5TypeTestCase):
new_person = self.getPortalObject().ERP5Site_getAuthenticatedMemberPersonValue()
self.assertEquals(person_user.getRelativeUrl(), new_person.getRelativeUrl())
def beforeTearDown(self):
pass
def test_Person_requestSoftwareInstance_requiredParameter(self):
person = self.getPortalObject().ERP5Site_getAuthenticatedMemberPersonValue()
......
9
\ No newline at end of file
10
\ No newline at end of file
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