Commit 435601a6 authored by Łukasz Nowak's avatar Łukasz Nowak

pep8ized.

parent 4dced9de
...@@ -4,6 +4,7 @@ from Products.SlapOS.tests.testSlapOSMixin import \ ...@@ -4,6 +4,7 @@ from Products.SlapOS.tests.testSlapOSMixin import \
import transaction import transaction
from Products.ERP5Type.tests.backportUnittest import expectedFailure from Products.ERP5Type.tests.backportUnittest import expectedFailure
class TestSlapOSCoreSoftwareInstanceRequest(testSlapOSMixin): class TestSlapOSCoreSoftwareInstanceRequest(testSlapOSMixin):
def generateNewId(self): def generateNewId(self):
...@@ -42,7 +43,6 @@ class TestSlapOSCoreSoftwareInstanceRequest(testSlapOSMixin): ...@@ -42,7 +43,6 @@ class TestSlapOSCoreSoftwareInstanceRequest(testSlapOSMixin):
self.software_instance = portal.software_instance_module\ self.software_instance = portal.software_instance_module\
.template_software_instance.Base_createCloneDocument(batch_mode=1) .template_software_instance.Base_createCloneDocument(batch_mode=1)
hosting_subscription.edit( hosting_subscription.edit(
title=self.request_kw['software_title'], title=self.request_kw['software_title'],
reference="TESTHS-%s" % new_id, reference="TESTHS-%s" % new_id,
...@@ -305,7 +305,7 @@ class TestSlapOSCoreSoftwareInstanceRequest(testSlapOSMixin): ...@@ -305,7 +305,7 @@ class TestSlapOSCoreSoftwareInstanceRequest(testSlapOSMixin):
duplicate2.validate() duplicate2.validate()
self.portal.portal_workflow._jumpToStateFor(duplicate2, 'start_requested') self.portal.portal_workflow._jumpToStateFor(duplicate2, 'start_requested')
self.software_instance.getSpecialiseValue(\ self.software_instance.getSpecialiseValue(
portal_type='Hosting Subscription').edit( portal_type='Hosting Subscription').edit(
predecessor_list=[ predecessor_list=[
duplicate.getRelativeUrl(), duplicate.getRelativeUrl(),
...@@ -356,7 +356,8 @@ class TestSlapOSCoreSoftwareInstanceRequest(testSlapOSMixin): ...@@ -356,7 +356,8 @@ class TestSlapOSCoreSoftwareInstanceRequest(testSlapOSMixin):
self.assertSameSet( self.assertSameSet(
self.software_instance.getPredecessorList(), self.software_instance.getPredecessorList(),
[requested_instance.getRelativeUrl(), requested_instance2.getRelativeUrl()]) [requested_instance.getRelativeUrl(),
requested_instance2.getRelativeUrl()])
def test_request_tree_change_indexed(self): def test_request_tree_change_indexed(self):
"""Checks tree change forced by request """Checks tree change forced by request
...@@ -521,7 +522,6 @@ class TestSlapOSCoreSoftwareInstanceRequest(testSlapOSMixin): ...@@ -521,7 +522,6 @@ class TestSlapOSCoreSoftwareInstanceRequest(testSlapOSMixin):
self.assertEqual(request_kw['software_type'], self.assertEqual(request_kw['software_type'],
requested_instance2.getSourceReference()) requested_instance2.getSourceReference())
self.tic() self.tic()
request_kw['state'] = 'destroyed' request_kw['state'] = 'destroyed'
......
73 74
\ No newline at end of file \ 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