'This is how we expect test writers to register a before_iteration_hook.
This adds the method to the list of hooks which are executed
before each iteration.
:param iteration_hook: Method to run before each iteration. A valid
hook accepts a single argument which is the
test object.'

def register_before_iteration_hook(self, iteration_hook):

    self.before_iteration_hooks.append(iteration_hook)
