Merge "Fix LockFixture docstring"

This commit is contained in:
Jenkins 2015-06-22 13:37:29 +00:00 committed by Gerrit Code Review
commit 2fc22f9a30

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()
...