diff options
author | Robert Collins <robertc@robertcollins.net> | 2013-08-16 12:50:14 +1200 |
---|---|---|
committer | Robert Collins <robertc@robertcollins.net> | 2013-08-16 12:50:14 +1200 |
commit | 9659b22fcc17420abaa946125e1c723c377fc46e (patch) | |
tree | 0b13908ff41771c5da731cfeedf50722acc64e6b /README | |
parent | 1ff98c654ba833d9dc2a442c7d3bce7c800d6958 (diff) | |
download | fixtures-9659b22fcc17420abaa946125e1c723c377fc46e.tar.gz |
* Documentation hopefully covers ``TestWithFixtures`` a little better.
(Robert Collins, #1102688)
Diffstat (limited to 'README')
-rw-r--r-- | README | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -173,7 +173,10 @@ cleanup, and return the fixture. This lets one write:: >>> import unittest Note that we use testtools TestCase here as we need to guarantee a -TestCase.addCleanup method. +TestCase.addCleanup method in this doctest. Unittest2 - Python2.7 and above - +also have ``addCleanup``. testtools has it's own implementation of +``useFixture`` so there is no need to use ``fixtures.TestWithFixtures`` with +``testtools.TestCase``. >>> class NoddyTest(testtools.TestCase, fixtures.TestWithFixtures): ... def test_example(self): |