Commit faf13e14 authored by Nicolas Delaby's avatar Nicolas Delaby

Follow naming conventions, class name must be capitalized


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@42059 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c32a5ddc
......@@ -127,7 +127,7 @@ def stopFakeEnvironment(stop_openoffice=True):
return True
class cloudoooTestCase(unittest.TestCase):
class CloudoooTestCase(unittest.TestCase):
"""Test Case to load cloudooo conf."""
def setUp(self):
......
......@@ -30,10 +30,10 @@ import unittest
from xmlrpclib import ServerProxy, Fault
from subprocess import Popen, PIPE
from base64 import encodestring, decodestring
from cloudoooTestCase import cloudoooTestCase, make_suite
from cloudoooTestCase import CloudoooTestCase, make_suite
class TestAllFormats(cloudoooTestCase):
class TestAllFormats(CloudoooTestCase):
"""Test XmlRpc Server. Needs cloudooo server started"""
def afterSetUp(self):
......
......@@ -32,10 +32,10 @@ import subprocess
from xmlrpclib import ServerProxy
from base64 import encodestring, decodestring
from multiprocessing import Process
from cloudoooTestCase import cloudoooTestCase, make_suite
from cloudoooTestCase import CloudoooTestCase, make_suite
class TestHighLoad(cloudoooTestCase):
class TestHighLoad(CloudoooTestCase):
"""Test with many simultaneous connection"""
def afterSetUp(self):
......
......@@ -27,7 +27,7 @@
##############################################################################
import unittest
from cloudoooTestCase import cloudoooTestCase
from cloudoooTestCase import CloudoooTestCase
from cloudooo.handler.ooo.application.openoffice import openoffice
from cloudooo.handler.ooo.mimemapper import MimeMapper
from cloudoooTestCase import make_suite
......@@ -169,7 +169,7 @@ chart_expected_tuple = (('sds', 'StarChart 3.0'),
('odc', 'ODF Chart'))
class TestMimeMapper(cloudoooTestCase):
class TestMimeMapper(CloudoooTestCase):
"""Test if object load filters correctly of OOo."""
def afterSetUp(self):
......
......@@ -28,12 +28,12 @@
import unittest
import cloudooo.handler.ooo.monitor as monitor
from cloudoooTestCase import cloudoooTestCase, make_suite
from cloudoooTestCase import CloudoooTestCase, make_suite
from cloudooo.handler.ooo.monitor.request import MonitorRequest
from cloudooo.handler.ooo.monitor.memory import MonitorMemory
class TestMonitorInit(cloudoooTestCase):
class TestMonitorInit(CloudoooTestCase):
"""Test Case to test if the monitors are controlled correctly"""
def afterSetUp(self):
......
......@@ -29,11 +29,11 @@
import unittest
from time import sleep
from cloudooo.handler.ooo.monitor.request import MonitorRequest
from cloudoooTestCase import cloudoooTestCase, make_suite
from cloudoooTestCase import CloudoooTestCase, make_suite
from cloudooo.handler.ooo.application.openoffice import openoffice
class TestMonitorRequest(cloudoooTestCase):
class TestMonitorRequest(CloudoooTestCase):
"""Test all features of a monitor following the interface"""
def testMonitorTerminate(self):
......
......@@ -31,11 +31,11 @@ import unittest
from zipfile import ZipFile
from StringIO import StringIO
from lxml import etree
from cloudoooTestCase import cloudoooTestCase, make_suite
from cloudoooTestCase import CloudoooTestCase, make_suite
from cloudooo.handler.ooo.granulator import OOGranulator
class TestOOGranulator(cloudoooTestCase):
class TestOOGranulator(CloudoooTestCase):
def setUp(self):
data = open('./data/granulate_test.odt').read()
......
......@@ -30,7 +30,7 @@ import unittest
from os import path
from subprocess import Popen, PIPE
from base64 import encodestring, decodestring
from cloudoooTestCase import cloudoooTestCase
from cloudoooTestCase import CloudoooTestCase
from cloudooo.handler.ooo.handler import OOHandler
from cloudooo.handler.ooo.application.openoffice import openoffice
from cloudoooTestCase import make_suite
......
......@@ -29,10 +29,10 @@
import unittest
from zipfile import ZipFile
from lxml import etree
from cloudoooTestCase import cloudoooTestCase, make_suite
from cloudoooTestCase import CloudoooTestCase, make_suite
from cloudooo.handler.ooo.document import OdfDocument
class TestOdfDocument(cloudoooTestCase):
class TestOdfDocument(CloudoooTestCase):
def setUp(self):
data = open('./data/granulate_test.odt').read()
......
......@@ -27,13 +27,13 @@
##############################################################################
import unittest
from cloudoooTestCase import cloudoooTestCase
from cloudoooTestCase import CloudoooTestCase
from cloudooo.handler.ooo.application.openoffice import OpenOffice
from cloudoooTestCase import make_suite
from cloudooo.handler.ooo.utils.utils import waitStopDaemon
class TestOpenOffice(cloudoooTestCase):
class TestOpenOffice(CloudoooTestCase):
"""Test OpenOffice object and manipulation of OOo Instance"""
def afterSetUp(self):
......
......@@ -32,12 +32,12 @@ from os import remove
from subprocess import Popen, PIPE
from xmlrpclib import ServerProxy, Fault
from base64 import encodestring, decodestring
from cloudoooTestCase import cloudoooTestCase, make_suite
from cloudoooTestCase import CloudoooTestCase, make_suite
from zipfile import ZipFile, is_zipfile
from types import DictType
class TestServer(cloudoooTestCase):
class TestServer(CloudoooTestCase):
"""Test XmlRpc Server. Needs cloudooo server started"""
def afterSetUp(self):
......
......@@ -31,12 +31,12 @@ import json
import pkg_resources
from subprocess import Popen, PIPE
from os.path import exists, join
from cloudoooTestCase import cloudoooTestCase, make_suite
from cloudoooTestCase import CloudoooTestCase, make_suite
from cloudooo.handler.ooo.application.openoffice import openoffice
from cloudooo.handler.ooo.document import FileSystemDocument
class TestUnoConverter(cloudoooTestCase):
class TestUnoConverter(CloudoooTestCase):
"""Test case to test all features of the unoconverter script"""
file_msg_list = ["Microsoft Office Document",
......
......@@ -32,10 +32,10 @@ import pkg_resources
from cloudooo.handler.ooo.application.openoffice import openoffice
from subprocess import Popen, PIPE
from os import environ, path
from cloudoooTestCase import cloudoooTestCase, make_suite
from cloudoooTestCase import CloudoooTestCase, make_suite
class TestUnoMimeMapper(cloudoooTestCase):
class TestUnoMimeMapper(CloudoooTestCase):
"""Test Case to test all features of script unomimemapper"""
def afterSetUp(self):
......
......@@ -27,12 +27,12 @@
##############################################################################
import unittest
from cloudoooTestCase import cloudoooTestCase, make_suite
from cloudoooTestCase import CloudoooTestCase, make_suite
from cloudooo.handler.ooo.application.xvfb import Xvfb
from cloudooo.handler.ooo.utils.utils import waitStopDaemon
class TestXvfb(cloudoooTestCase):
class TestXvfb(CloudoooTestCase):
def afterSetUp(self):
"""Instanciate a xvfb object"""
......
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