Commit 62bc3fbc authored by Łukasz Nowak's avatar Łukasz Nowak

- whitespace and newline removal

 - copyright update


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26328 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 755db8f7
# -*- coding: latin1 -*-
##############################################################################
#
# Copyright (c) 2007 Nexedi SARL and Contributors. All Rights Reserved.
# Copyright (c) 2007,2009 Nexedi SARL and Contributors. All Rights Reserved.
# Aurélien Calonne <aurel@nexedi.com>
# Lukasz Nowak <luke@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
......@@ -55,7 +56,6 @@ class TestFolderMigration(ERP5TypeTestCase, LogInterceptor):
self.folder = self.getPortal().newContent(id='TestFolder',
portal_type='Folder')
def beforeTearDown(self):
"""
Executed after each test_*.
......@@ -66,7 +66,6 @@ class TestFolderMigration(ERP5TypeTestCase, LogInterceptor):
get_transaction().commit()
self.tic()
def newContent(self, *args, **kwargs):
"""
Create an object in self.folder and return it.
......@@ -85,7 +84,6 @@ class TestFolderMigration(ERP5TypeTestCase, LogInterceptor):
self.assertEqual(self.folder.isBTree(), True)
self.assertEqual(self.folder.isHBTree(), False)
def test_02_migrateFolder(self, quiet=0, run=1):
"""
migrate folder from btree to hbtree
......@@ -132,7 +130,6 @@ class TestFolderMigration(ERP5TypeTestCase, LogInterceptor):
obj4 = self.newContent()
self.assertEquals(obj4.getId().split('-')[0], date)
def test_03_emptyFolderIsBtree(self, quiet=0, run=1):
"""
Test the folder is a BTree
......@@ -145,7 +142,6 @@ class TestFolderMigration(ERP5TypeTestCase, LogInterceptor):
self.assertEqual(self.folder.isBTree(), True)
self.assertEqual(self.folder.isHBTree(), False)
def test_03a_filledFolderIsBtree(self, quiet=0, run=1):
"""
Test the folder is a BTree
......@@ -509,7 +505,6 @@ class TestFolderMigration(ERP5TypeTestCase, LogInterceptor):
self.assertEqual(len(self.folder.objectValues()), 4)
self.assertEqual(len(self.folder.objectValues(base_id=id_prefix)), 3)
def test_13_wrongFolderHandlerFix(self, quiet=0, run=1):
if not run : return
if not quiet:
......
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