def test_set_hostname(self):
        for state in ['config', 'negate', 'default']:
            value = random_string()
            if state == 'config':
                cmds = value % 'hostname %s'
                func = function('set_hostname', value)
            elif state == 'negate':
                cmds = 'no hostname'
                func = function('set_hostname', disable=True)
            elif state == 'default':
                cmds = 'default hostname'
                func = function('set_hostname', value=value, default=True)
            self.eapi_positive_config_test(func, cmds)
dataset/ETHPy150Open arista-eosplus/pyeapi/test/unit/test_api_system.py/TestApiSystem.test_set_hostname/swapped operands of `%`