Commit 99c1a649 authored by Łukasz Nowak's avatar Łukasz Nowak

Pyflaked.

parent 1a93df24
...@@ -4,7 +4,6 @@ from Products.SlapOS.tests.testSlapOSMixin import \ ...@@ -4,7 +4,6 @@ from Products.SlapOS.tests.testSlapOSMixin import \
from Products.ERP5Type.tests.SecurityTestCase import SecurityTestCase from Products.ERP5Type.tests.SecurityTestCase import SecurityTestCase
from Products.ERP5Type.tests.backportUnittest import expectedFailure from Products.ERP5Type.tests.backportUnittest import expectedFailure
from AccessControl import Unauthorized from AccessControl import Unauthorized
import transaction
READ = 'Access contents information' READ = 'Access contents information'
VIEW = 'View' VIEW = 'View'
...@@ -188,9 +187,6 @@ class TestSlapOSCache(testSlapOSMixin, SecurityTestCase): ...@@ -188,9 +187,6 @@ class TestSlapOSCache(testSlapOSMixin, SecurityTestCase):
def test_PDFPermission(self): def test_PDFPermission(self):
self._testDocumentPermission(self.portal.document_module, "PDF") self._testDocumentPermission(self.portal.document_module, "PDF")
def test_DrawingLocalRole(self):
self._testDocumentPermission(self.portal.document_module, "Drawing")
def test_ImagePermission(self): def test_ImagePermission(self):
self._testDocumentPermission(self.portal.image_module, "Image") self._testDocumentPermission(self.portal.image_module, "Image")
...@@ -230,9 +226,6 @@ class TestSlapOSCache(testSlapOSMixin, SecurityTestCase): ...@@ -230,9 +226,6 @@ class TestSlapOSCache(testSlapOSMixin, SecurityTestCase):
def test_DocumentModulePermission(self): def test_DocumentModulePermission(self):
self._testModulePermission(self.portal.document_module) self._testModulePermission(self.portal.document_module)
def test_DocumentModulePermission(self):
self._testModulePermission(self.portal.image_module)
# Contribution Tool # Contribution Tool
@expectedFailure @expectedFailure
def test_user_create_document_using_contribution_tool(self): def test_user_create_document_using_contribution_tool(self):
......
4 5
\ No newline at end of file \ No newline at end of file
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
from Products.SlapOS.tests.testSlapOSMixin import \ from Products.SlapOS.tests.testSlapOSMixin import \
testSlapOSMixin testSlapOSMixin
import transaction import transaction
from Products.ERP5Type.tests.backportUnittest import expectedFailure
from Products.ERP5Type.Errors import UnsupportedWorkflowMethod from Products.ERP5Type.Errors import UnsupportedWorkflowMethod
class TestSlapOSCorePersonComputerSupply(testSlapOSMixin): class TestSlapOSCorePersonComputerSupply(testSlapOSMixin):
......
...@@ -143,7 +143,6 @@ class TestSlapOSCorePersonRequest(testSlapOSMixin): ...@@ -143,7 +143,6 @@ class TestSlapOSCorePersonRequest(testSlapOSMixin):
""" """
sla_xml = "test" sla_xml = "test"
shared = True shared = True
state = "started"
# Only started, stopped, destroyed # Only started, stopped, destroyed
self.assertRaises(ValueError, person.requestSoftwareInstance, self.assertRaises(ValueError, person.requestSoftwareInstance,
......
147 148
\ No newline at end of file \ No newline at end of file
...@@ -1897,8 +1897,6 @@ class TestStatusGET(SlapOSRestAPIV1InstanceMixin): ...@@ -1897,8 +1897,6 @@ class TestStatusGET(SlapOSRestAPIV1InstanceMixin):
def test_no_data_in_memcached(self): def test_no_data_in_memcached(self):
self.computer = self.createComputer() self.computer = self.createComputer()
reference = self.computer.getReference()
value = json.dumps({'foo': reference})
self.connection.request(method='GET', self.connection.request(method='GET',
url='/'.join([self.api_path, 'status', url='/'.join([self.api_path, 'status',
self.computer.getRelativeUrl()]), self.computer.getRelativeUrl()]),
......
10 11
\ 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