Skip to content

Commit

Permalink
Improve setUpCycle/Bench doc
Browse files Browse the repository at this point in the history
  • Loading branch information
bdelbosc committed Apr 29, 2015
1 parent 3720269 commit 606c963
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/funkload/FunkLoadTestCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,11 @@ def conf_getList(self, section, key, default=_marker, quiet=False,
# Extend unittest.TestCase to provide bench cycle hook
#
def setUpCycle(self):
"""Called on bench mode before a cycle start."""
"""Called on bench mode before a cycle start.
Note that you can not initialize your testcase instance with this
method, you need to use the setUp method instead.
"""
pass

def midCycle(self, cycle, cvus):
Expand All @@ -777,7 +781,12 @@ def tearDownCycle(self):
# Extend unittest.TestCase to provide bench setup/teardown hook
#
def setUpBench(self):
"""Called before the start of the bench."""
"""Called before the start of the bench.
Note that you can not initialize your testcase instance with this
method, you need to use the setUp method instead.
"""

pass

def tearDownBench(self):
Expand Down

0 comments on commit 606c963

Please sign in to comment.