sub-modules.
Depending on the unittest2_ class that is used to write the tests (see
-``openerp.tests.common`` for some helper classes that you can re-use), a database
-may be created before the test is run, and the module providing the test will
-be installed on that database.
+:mod:`openerp.tests.common` for some helper classes that you can re-use), a
+database may be created before the test is run, and the module providing the
+test will be installed on that database.
Because creating a database, installing modules, and then dropping it is
expensive, it is possible to interleave the run of the ``fast_suite`` tests
is thus created and dropped (and the modules installed) only once.
.. _unittest2: http://pypi.python.org/pypi/unittest2
+
+TestCase subclasses
+-------------------
+
+.. automodule:: openerp.tests.common
+ :members:
# -*- coding: utf-8 -*-
+"""
+The module :mod:`openerp.tests.common` provides a few helper and classes to write
+tests.
+"""
import os
import threading
import time
Subclass of TestCase with a few XML-RPC proxies.
"""
- def __init__(self, name):
- super(RpcCase, self).__init__(name)
+ def __init__(self, methodName='runTest'):
+ super(RpcCase, self).__init__(methodName)
class A(object):
pass