rougail/tests/eosfunc/test.py

80 lines
1 KiB
Python
Raw Normal View History

from tiramisu import valid_not_equal, valid_ip_netmask, valid_in_network, calc_value_property_help
2019-11-27 15:03:05 +01:00
def trange(start, stop):
return list(range(start, stop))
2019-11-24 20:25:09 +01:00
def calc_val(*args, **kwargs):
2020-10-03 22:10:32 +02:00
if len(args) > 0:
return args[0]
2019-11-24 20:25:09 +01:00
def concat(*args, **kwargs):
pass
def calc_multi_condition(*args, **kwargs):
pass
def get_zone_name_bridge(*args, **kwargs):
pass
def get_devices(*args, **kwargs):
pass
def get_mount_point_device(*args, **kwargs):
pass
def valid_differ(*args, **kwargs):
pass
def valid_ipnetmask(*args, **kwargs):
pass
def valid_enum(*args, **kwargs):
pass
def valid_lower(*args, **kwargs):
pass
def list_files(*args, **kwargs):
# FIXME ?
return kwargs['default']
def calc_multi_val(*args, **kwargs):
return args[0]
def cdrom_minormajor(*args, **kwargs):
pass
def device_type(*args, **kwargs):
pass
2020-07-06 19:47:45 +02:00
def calc_list(*args, **kwargs):
2020-10-03 21:43:50 +02:00
return list(args)
2021-02-17 22:32:28 +01:00
def test_index(index):
return index
2023-10-12 08:17:30 +02:00
def return_no():
return 'no'
def return_yes():
return 'yes'