Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ pointing to an allocated resource, which is the result of calling
``resource_manager.getResource()``. ``finishedWith`` will be called on each
resource during tearDown().

For example::
For example:

.. code-block:: python

class TestLog(testresources.ResourcedTestCase):

Expand Down Expand Up @@ -161,7 +163,9 @@ overriding these methods:
whether ``TestResourceManager.dirtied`` has been called or any of the
dependency resources are dirty.

For instance::
For instance:

.. code-block:: python

class TemporaryDirectoryResource(TestResourceManager):

Expand All @@ -179,7 +183,9 @@ For instance::

The ``resources`` list on the TestResourceManager object is used to declare
dependencies. For instance, a DataBaseResource that needs a TemporaryDirectory
might be declared with a resources list::
might be declared with a resources list:

.. code-block:: python

class DataBaseResource(TestResourceManager):

Expand Down