16 from random
import Random
23 def __init__(self, randomize_suites=True, randomize_tests=True, seed=None):
37 suite.metadata[
'Randomized'] = self.
_get_message_get_message()
40 possibilities = {(
True,
True):
'Suites and tests',
41 (
True,
False):
'Suites',
42 (
False,
True):
'Tests'}
44 return '%s (seed %s)' % (possibilities[randomized], self.
seedseed)
Interface to ease traversing through a test suite structure.
def visit_keyword(self, kw)
Implements traversing through keywords.
def visit_test(self, test)
Implements traversing through tests.
def start_suite(self, suite)
Called when a suite starts.
def __init__(self, randomize_suites=True, randomize_tests=True, seed=None)