Fix LockFixture docstring

Fixtures.useFixture takes a class instance, not a class type.

Change-Id: I48fff3f1a25b28e9ba15f79cbe18ea4c9582bd5c
This commit is contained in:
IWAMOTO Toshihiro 2015-06-16 18:14:53 +09:00
parent 4ac9247be5
commit 98c3227f91

View File

@ -28,7 +28,7 @@ class LockFixture(fixtures.Fixture):
be the first line in a test method, like so::
def test_method(self):
self.useFixture(LockFixture)
self.useFixture(LockFixture('lock_name'))
...
or the first line in setUp if all the test methods in the class are
@ -36,7 +36,7 @@ class LockFixture(fixtures.Fixture):
class TestCase(testtools.testcase):
def setUp(self):
self.useFixture(LockFixture)
self.useFixture(LockFixture('lock_name'))
super(TestCase, self).setUp()
...