def test_properties(self, server, simple_node, prop, setter, getter, values): session = elliptics.Session(node=simple_node) assert type(session) == elliptics.Session for value in values: set_property(session, prop, value, setter=setter, getter=getter)
def test_cookie(self, cfg): set_property( cfg, 'cookie', '', '\x00' * 32) set_property( cfg, 'cookie', 'x', 'x' + '\x00' * 31) set_property( cfg, 'cookie', '435sdg453y2sd', '435sdg453y2sd' + '\x00' * 19) set_property( cfg, 'cookie', 'lsdjhfalkshjdflkjahsglkjhasdkjg', 'lsdjhfalkshjdflkjahsglkjhasdkjg\x00') set_property( cfg, 'cookie', '093-4utpoijherg098dfh-98haspdngpapwg9yas', '093-4utpoijherg098dfh-98haspdng\x00')
def test_properties(self, cfg, properties): prop, values = properties for value in values: set_property(cfg, prop, value)