def __init__(self, cmd_name): TestResource.__init__(self) self.resources.append(('pkg', StubPackageResource('commands', [('%s.py' % cmd_name, """from l_mirror.commands import Command class %s(Command): def run(self): pass """ % cmd_name)], init=False))) self.cmd_name = cmd_name
def __init__(self, cmd_name): TestResource.__init__(self) cmd_name = cmd_name.replace('-', '_') self.resources.append(('pkg', StubPackageResource('commands', [('%s.py' % cmd_name, """from testrepository.commands import Command class %s(Command): def run(self): pass """ % cmd_name)], init=False))) self.cmd_name = cmd_name
def __init__(self, cmd_name): TestResource.__init__(self) cmd_name = cmd_name.replace('-', '_') self.resources.append( ('pkg', StubPackageResource( 'commands', [('%s.py' % cmd_name, """from testrepository.commands import Command class %s(Command): def run(self): pass """ % cmd_name)], init=False))) self.cmd_name = cmd_name