def setUpClass(cls): """Run before starting the tests.""" hostname = '127.0.0.1' username = '******' password = '******' cls.vendor = 'skeleton' optional_args = {'port': 12443, } cls.device = skeleton.SkeletonDriver(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()
def setUpClass(cls): """Run before starting the tests.""" hostname = "127.0.0.1" username = "******" password = "******" cls.vendor = "skeleton" optional_args = {"port": 12443} cls.device = skeleton.SkeletonDriver(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()
def setUpClass(cls): """Run before starting the tests.""" cls.mock = True hostname = "127.0.0.1" username = "******" password = "******" cls.vendor = "skeleton" optional_args = {"port": 12443} cls.device = skeleton.SkeletonDriver(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.""" cls.mock = True hostname = '127.0.0.1' username = '******' password = '******' cls.vendor = 'skeleton' optional_args = { 'port': 12443, } cls.device = skeleton.SkeletonDriver(hostname, username, password, timeout=60, optional_args=optional_args) if cls.mock: cls.device.device = FakeDevice() else: cls.device.open()