[Erp5-report] r35831 nicolas - /erp5/trunk/products/ERP5SyncML/tests/
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon May 31 19:05:45 CEST 2010
Author: nicolas
Date: Mon May 31 19:05:44 2010
New Revision: 35831
URL: http://svn.erp5.org?rev=35831&view=rev
Log:
remove blank spaces
Modified:
erp5/trunk/products/ERP5SyncML/tests/testERP5DocumentSyncML.py
erp5/trunk/products/ERP5SyncML/tests/testERP5SyncML.py
Modified: erp5/trunk/products/ERP5SyncML/tests/testERP5DocumentSyncML.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5SyncML/tests/testERP5DocumentSyncML.py?rev=35831&r1=35830&r2=35831&view=diff
==============================================================================
--- erp5/trunk/products/ERP5SyncML/tests/testERP5DocumentSyncML.py [utf8] (original)
+++ erp5/trunk/products/ERP5SyncML/tests/testERP5DocumentSyncML.py [utf8] Mon May 31 19:05:44 2010
@@ -112,7 +112,7 @@
nb_publication = 1
#default edit_workflow
workflow_id = 'processing_status_workflow'
-
+
def getBusinessTemplateList(self):
"""
@@ -132,7 +132,7 @@
self.setSystemPreferences()
transaction.commit()
self.tic()
-
+
def beforeTearDown(self):
"""
Do some stuff after each test:
@@ -201,7 +201,7 @@
self.portal.portal_types.constructContent(type_name = 'Document Module',
container = self.portal,
id = 'document_client1')
-
+
if one_way:
if not hasattr(self.portal, 'document_client_from_server'):
self.portal.portal_types.constructContent(type_name = 'Document Module',
@@ -215,7 +215,7 @@
self.portal._delObject(id='document_client1')
transaction.commit()
self.tic()
-
+
def clearPublicationsAndSubscriptions(self):
portal_sync = self.getSynchronizationTool()
for pub in portal_sync.getPublicationList():
@@ -251,7 +251,7 @@
uf._doAddUser('syncml', '', ['Manager'], [])
user = uf.getUserById('daniele').__of__(uf)
newSecurityManager(None, user)
-
+
def resetSignaturePublicationAndSubscription(self):
portal_sync = self.getSynchronizationTool()
publication = portal_sync.getPublication(self.pub_id)
@@ -285,7 +285,7 @@
nb_document = len(document_server.objectValues())
self.assertEqual(nb_document, len(self.ids))
return nb_document
-
+
def documentServer(self, quiet=0, one_way=False):
"""
create document in document_server
@@ -506,7 +506,7 @@
doc_c = document_client1._getOb(str(id))
self.assertXMLViewIsEqual(self.sub_id1, doc_s, doc_c)
-
+
def checkFirstSynchronizationWithMultiDocument(self, nb_document=0):
portal_sync = self.getSynchronizationTool()
subscription1 = portal_sync.getSubscription(self.sub_id1)
@@ -635,7 +635,7 @@
self.assertEqual(nb_message1, self.nb_message_first_synchronization)
self.checkSynchronizationStateIsSynchronized()
self.checkFirstSynchronization(nb_document=nb_document)
-
+
def test_03_UpdateSimpleData(self, quiet=0):
if not quiet:
ZopeTestCase._print('\nTest Update Simple Data ')
@@ -977,7 +977,7 @@
With http synchronization, when a message is not well
received, then we send message again, we want to
be sure that is such case we don't do stupid things
-
+
If we want to make this test more intersting, it is
better to split messages
"""
@@ -1080,7 +1080,7 @@
self.assertEqual(document_s.getSourceReference(), self.filename_text)
self.assertEquals(self.size_filename_text, document_s.get_size())
self.assertEquals(document_s.getShortTitle(), self.short_title2)
-
+
#reset for refresh sync
#after synchronize, the client object retrieve value of server
self.resetSignaturePublicationAndSubscription()
Modified: erp5/trunk/products/ERP5SyncML/tests/testERP5SyncML.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5SyncML/tests/testERP5SyncML.py?rev=35831&r1=35830&r2=35831&view=diff
==============================================================================
--- erp5/trunk/products/ERP5SyncML/tests/testERP5SyncML.py [utf8] (original)
+++ erp5/trunk/products/ERP5SyncML/tests/testERP5SyncML.py [utf8] Mon May 31 19:05:44 2010
@@ -1244,7 +1244,6 @@
self.synchronize(self.sub_id2)
self.assertXMLViewIsEqual(self.sub_id2, person1_s, person1_c2)
self.assertXMLViewIsEqual(self.sub_id1, person1_s, person1_c1)
-
def test_26_SynchronizeWorkflowHistory(self, quiet=0, run=run_all_test):
"""
@@ -1649,7 +1648,6 @@
self.assertEquals(person1_s.getFirstName(), self.first_name3)
self.assertEquals(person1_s.getLastName(), self.last_name3)
-
#adding authentication :
self.addAuthenticationToPublication(self.pub_id, 'fab', 'myPassword', 'b64',
'syncml:auth-basic')
@@ -1734,7 +1732,7 @@
self.assertEquals(person1_s.getFirstName(), self.first_name3)
self.assertEquals(person1_s.getLastName(), self.last_name3)
self.checkSynchronizationStateIsSynchronized()
-
+
def test_36_SynchronizationSubscriptionMaxLines(self, quiet=0, run=run_all_test):
# We will try to populate the folder person_server
# with the data form person_client
More information about the Erp5-report
mailing list