Skip to content

Commit

Permalink
document new unittest.TestCase base class for KazooTestHarness
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed Jul 23, 2013
1 parent a44b696 commit 1bbeece
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ Bug Handling
API Changes
***********

- The `kazoo.testing.harness.KazooTestHarness` class directly inherits from
`unittest.TestCase` and you need to ensure to call its `__init__` method.

- DataWatch no longer takes any parameters besides for the optional function
during instantiation. The additional options are now implicitly True, with
the user being left to ignore events as they choose. See the DataWatch
Expand Down
4 changes: 1 addition & 3 deletions docs/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@ Example:

.. code-block:: python
import unittest
from kazoo.testing import KazooTestHarness
class MyTest(unittest.TestCase, KazooTestHarness):
class MyTest(KazooTestHarness):
def setUp(self):
self.setup_zookeeper()
Expand Down
2 changes: 1 addition & 1 deletion kazoo/testing/harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class KazooTestHarness(unittest.TestCase):
Example::
class MyTestCase(unittest.TestCase, KazooTestHarness):
class MyTestCase(KazooTestHarness):
def setUp(self):
self.setup_zookeeper()
Expand Down

0 comments on commit 1bbeece

Please sign in to comment.