1from conf import hook 2 3""" Pre-Test Hook: WgetCommands 4This hook is used to specify the test specific switches that must be passed to 5wget on invokation. Default switches are hard coded in the test suite itself. 6""" 7 8 9@hook() 10class WgetCommands: 11 def __init__(self, commands): 12 self.commands = commands 13 14 def __call__(self, test_obj): 15 test_obj.wget_options = test_obj._replace_substring(self.commands) 16