def setUpClass(cls):
        """Executed when the class is instantiated."""
        ip_addr = '10.16.148.154'
        username = '******'
        password = '******'
        cls.vendor = 'dellos10'
        optional_args = {}

        cls.device = dellos10.DellOS10Driver(ip_addr,
                                             username,
                                             password,
                                             optional_args=optional_args)
        cls.device.open()

        # Setup initial state
        cls.device.load_merge_candidate(filename='%s/initial.conf' %
                                        cls.vendor)
        cls.device.commit_config()
    def setUpClass(cls):
        """Executed when the class is instantiated."""
        cls.mock = True

        username = '******'
        ip_addr = '10.1.1.1'
        password = '******'
        cls.vendor = 'dellos10'
        optional_args = {}

        cls.device = dellos10.DellOS10Driver(ip_addr,
                                             username,
                                             password,
                                             optional_args=optional_args)

        if cls.mock:
            cls.device.device = FakeDellOS10Device()
        else:
            cls.device.open()