def setUpClass(cls): """Execute when the class is instantiated.""" hostname = '127.0.0.1' username = '******' password = '******' cls.vendor = 'ce' cls.device = ce.CEDriver(hostname, username, password) cls.device.open() cls.device.load_replace_candidate(filename='%s/initial.conf' % cls.vendor) cls.device.commit_config()
def setUpClass(cls): """Run before starting the tests.""" cls.mock = True hostname = '127.0.0.1' username = '******' password = '******' cls.vendor = 'ce' optional_args = {'port': 12443, } cls.device = ce.CEDriver(hostname, username, password, timeout=60, optional_args=optional_args) if cls.mock: cls.device.device = FakeDevice() else: cls.device.open()
def setUpClass(cls): """Run before starting the tests.""" hostname = '127.0.0.1' username = '******' password = '******' cls.vendor = 'ce' optional_args = { 'port': 12443, } cls.device = ce.CEDriver(hostname, username, password, timeout=60, optional_args=optional_args) cls.device.open() cls.device.load_replace_candidate(filename='%s/initial.conf' % cls.vendor) cls.device.commit_config()