def __init__(self, scenario): """ Initialization of a generic tc object. @param scenario The ScenarioRunner object this tc object is part of. """ tc.__init__(self, scenario) # TODO: Your initialization, if any (not likely). Oh, and remove the next line. raise Exception( "DO NOT instantiate the skeleton implementation" )
def __init__(self, scenario): """ Initialization of a generic tc object. @param scenario The ScenarioRunner object this tc object is part of. """ tc.__init__(self, scenario) print "WARNING! WARNING! WARNING!" print "The tc:netem module has NOT been tested yet." print "We would gladly hear from you about your experiences." print "However, if you're about to use this on a server that should not break down completely this is the moment to cancel your attempts." print "WARNING! WARNING! WARNING!" for _ in range(0, 20): time.sleep( 1 )