Commit 0084aceb authored by Nicolas Delaby's avatar Nicolas Delaby

remove blank spaces

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35831 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 16453e60
...@@ -112,7 +112,7 @@ class TestERP5DocumentSyncMLMixin(ERP5TypeTestCase): ...@@ -112,7 +112,7 @@ class TestERP5DocumentSyncMLMixin(ERP5TypeTestCase):
nb_publication = 1 nb_publication = 1
#default edit_workflow #default edit_workflow
workflow_id = 'processing_status_workflow' workflow_id = 'processing_status_workflow'
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
""" """
...@@ -132,7 +132,7 @@ class TestERP5DocumentSyncMLMixin(ERP5TypeTestCase): ...@@ -132,7 +132,7 @@ class TestERP5DocumentSyncMLMixin(ERP5TypeTestCase):
self.setSystemPreferences() self.setSystemPreferences()
transaction.commit() transaction.commit()
self.tic() self.tic()
def beforeTearDown(self): def beforeTearDown(self):
""" """
Do some stuff after each test: Do some stuff after each test:
...@@ -201,7 +201,7 @@ class TestERP5DocumentSyncMLMixin(ERP5TypeTestCase): ...@@ -201,7 +201,7 @@ class TestERP5DocumentSyncMLMixin(ERP5TypeTestCase):
self.portal.portal_types.constructContent(type_name = 'Document Module', self.portal.portal_types.constructContent(type_name = 'Document Module',
container = self.portal, container = self.portal,
id = 'document_client1') id = 'document_client1')
if one_way: if one_way:
if not hasattr(self.portal, 'document_client_from_server'): if not hasattr(self.portal, 'document_client_from_server'):
self.portal.portal_types.constructContent(type_name = 'Document Module', self.portal.portal_types.constructContent(type_name = 'Document Module',
...@@ -215,7 +215,7 @@ class TestERP5DocumentSyncMLMixin(ERP5TypeTestCase): ...@@ -215,7 +215,7 @@ class TestERP5DocumentSyncMLMixin(ERP5TypeTestCase):
self.portal._delObject(id='document_client1') self.portal._delObject(id='document_client1')
transaction.commit() transaction.commit()
self.tic() self.tic()
def clearPublicationsAndSubscriptions(self): def clearPublicationsAndSubscriptions(self):
portal_sync = self.getSynchronizationTool() portal_sync = self.getSynchronizationTool()
for pub in portal_sync.getPublicationList(): for pub in portal_sync.getPublicationList():
...@@ -251,7 +251,7 @@ class TestERP5DocumentSyncMLMixin(ERP5TypeTestCase): ...@@ -251,7 +251,7 @@ class TestERP5DocumentSyncMLMixin(ERP5TypeTestCase):
uf._doAddUser('syncml', '', ['Manager'], []) uf._doAddUser('syncml', '', ['Manager'], [])
user = uf.getUserById('daniele').__of__(uf) user = uf.getUserById('daniele').__of__(uf)
newSecurityManager(None, user) newSecurityManager(None, user)
def resetSignaturePublicationAndSubscription(self): def resetSignaturePublicationAndSubscription(self):
portal_sync = self.getSynchronizationTool() portal_sync = self.getSynchronizationTool()
publication = portal_sync.getPublication(self.pub_id) publication = portal_sync.getPublication(self.pub_id)
...@@ -285,7 +285,7 @@ class TestERP5DocumentSyncMLMixin(ERP5TypeTestCase): ...@@ -285,7 +285,7 @@ class TestERP5DocumentSyncMLMixin(ERP5TypeTestCase):
nb_document = len(document_server.objectValues()) nb_document = len(document_server.objectValues())
self.assertEqual(nb_document, len(self.ids)) self.assertEqual(nb_document, len(self.ids))
return nb_document return nb_document
def documentServer(self, quiet=0, one_way=False): def documentServer(self, quiet=0, one_way=False):
""" """
create document in document_server create document in document_server
...@@ -506,7 +506,7 @@ class TestERP5DocumentSyncMLMixin(ERP5TypeTestCase): ...@@ -506,7 +506,7 @@ class TestERP5DocumentSyncMLMixin(ERP5TypeTestCase):
doc_c = document_client1._getOb(str(id)) doc_c = document_client1._getOb(str(id))
self.assertXMLViewIsEqual(self.sub_id1, doc_s, doc_c) self.assertXMLViewIsEqual(self.sub_id1, doc_s, doc_c)
def checkFirstSynchronizationWithMultiDocument(self, nb_document=0): def checkFirstSynchronizationWithMultiDocument(self, nb_document=0):
portal_sync = self.getSynchronizationTool() portal_sync = self.getSynchronizationTool()
subscription1 = portal_sync.getSubscription(self.sub_id1) subscription1 = portal_sync.getSubscription(self.sub_id1)
...@@ -635,7 +635,7 @@ class TestERP5DocumentSyncML(TestERP5DocumentSyncMLMixin, ERP5TypeTestCase): ...@@ -635,7 +635,7 @@ class TestERP5DocumentSyncML(TestERP5DocumentSyncMLMixin, ERP5TypeTestCase):
self.assertEqual(nb_message1, self.nb_message_first_synchronization) self.assertEqual(nb_message1, self.nb_message_first_synchronization)
self.checkSynchronizationStateIsSynchronized() self.checkSynchronizationStateIsSynchronized()
self.checkFirstSynchronization(nb_document=nb_document) self.checkFirstSynchronization(nb_document=nb_document)
def test_03_UpdateSimpleData(self, quiet=0): def test_03_UpdateSimpleData(self, quiet=0):
if not quiet: if not quiet:
ZopeTestCase._print('\nTest Update Simple Data ') ZopeTestCase._print('\nTest Update Simple Data ')
...@@ -977,7 +977,7 @@ class TestERP5DocumentSyncML(TestERP5DocumentSyncMLMixin, ERP5TypeTestCase): ...@@ -977,7 +977,7 @@ class TestERP5DocumentSyncML(TestERP5DocumentSyncMLMixin, ERP5TypeTestCase):
With http synchronization, when a message is not well With http synchronization, when a message is not well
received, then we send message again, we want to received, then we send message again, we want to
be sure that is such case we don't do stupid things be sure that is such case we don't do stupid things
If we want to make this test more intersting, it is If we want to make this test more intersting, it is
better to split messages better to split messages
""" """
...@@ -1080,7 +1080,7 @@ class TestERP5DocumentSyncML(TestERP5DocumentSyncMLMixin, ERP5TypeTestCase): ...@@ -1080,7 +1080,7 @@ class TestERP5DocumentSyncML(TestERP5DocumentSyncMLMixin, ERP5TypeTestCase):
self.assertEqual(document_s.getSourceReference(), self.filename_text) self.assertEqual(document_s.getSourceReference(), self.filename_text)
self.assertEquals(self.size_filename_text, document_s.get_size()) self.assertEquals(self.size_filename_text, document_s.get_size())
self.assertEquals(document_s.getShortTitle(), self.short_title2) self.assertEquals(document_s.getShortTitle(), self.short_title2)
#reset for refresh sync #reset for refresh sync
#after synchronize, the client object retrieve value of server #after synchronize, the client object retrieve value of server
self.resetSignaturePublicationAndSubscription() self.resetSignaturePublicationAndSubscription()
......
...@@ -1244,7 +1244,6 @@ class TestERP5SyncML(TestERP5SyncMLMixin, ERP5TypeTestCase): ...@@ -1244,7 +1244,6 @@ class TestERP5SyncML(TestERP5SyncMLMixin, ERP5TypeTestCase):
self.synchronize(self.sub_id2) self.synchronize(self.sub_id2)
self.assertXMLViewIsEqual(self.sub_id2, person1_s, person1_c2) self.assertXMLViewIsEqual(self.sub_id2, person1_s, person1_c2)
self.assertXMLViewIsEqual(self.sub_id1, person1_s, person1_c1) self.assertXMLViewIsEqual(self.sub_id1, person1_s, person1_c1)
def test_26_SynchronizeWorkflowHistory(self, quiet=0, run=run_all_test): def test_26_SynchronizeWorkflowHistory(self, quiet=0, run=run_all_test):
""" """
...@@ -1649,7 +1648,6 @@ wuIFtde33Dp3NkZl9fc2Rmw6fDp8OnX2RmX19fJibDqV1dXcKwwrDCsMKwwrDCsA==" ...@@ -1649,7 +1648,6 @@ wuIFtde33Dp3NkZl9fc2Rmw6fDp8OnX2RmX19fJibDqV1dXcKwwrDCsMKwwrDCsA=="
self.assertEquals(person1_s.getFirstName(), self.first_name3) self.assertEquals(person1_s.getFirstName(), self.first_name3)
self.assertEquals(person1_s.getLastName(), self.last_name3) self.assertEquals(person1_s.getLastName(), self.last_name3)
#adding authentication : #adding authentication :
self.addAuthenticationToPublication(self.pub_id, 'fab', 'myPassword', 'b64', self.addAuthenticationToPublication(self.pub_id, 'fab', 'myPassword', 'b64',
'syncml:auth-basic') 'syncml:auth-basic')
...@@ -1734,7 +1732,7 @@ wuIFtde33Dp3NkZl9fc2Rmw6fDp8OnX2RmX19fJibDqV1dXcKwwrDCsMKwwrDCsA==" ...@@ -1734,7 +1732,7 @@ wuIFtde33Dp3NkZl9fc2Rmw6fDp8OnX2RmX19fJibDqV1dXcKwwrDCsMKwwrDCsA=="
self.assertEquals(person1_s.getFirstName(), self.first_name3) self.assertEquals(person1_s.getFirstName(), self.first_name3)
self.assertEquals(person1_s.getLastName(), self.last_name3) self.assertEquals(person1_s.getLastName(), self.last_name3)
self.checkSynchronizationStateIsSynchronized() self.checkSynchronizationStateIsSynchronized()
def test_36_SynchronizationSubscriptionMaxLines(self, quiet=0, run=run_all_test): def test_36_SynchronizationSubscriptionMaxLines(self, quiet=0, run=run_all_test):
# We will try to populate the folder person_server # We will try to populate the folder person_server
# with the data form person_client # with the data form person_client
......
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