Lines Matching refs:MockResponse
26 from .nso_module import MockResponse
37 MockResponse('login', {}, 200, '{}', {'set-cookie': 'id'}),
38 … MockResponse('get_system_setting', {'operation': 'version'}, 200, '{"result": "4.4.3"}'),
39 MockResponse('logout', {}, 200, '{"result": {}}'),
59 MockResponse('login', {}, 200, '{}', {'set-cookie': 'id'}),
60 … MockResponse('get_system_setting', {'operation': 'version'}, 200, '{"result": "4.5.0"}'),
61 MockResponse('get_module_prefix_map', {}, 200, '{"result": {"tailf-ncs": "ncs"}}'),
62 MockResponse('new_trans', {'mode': 'read'}, 200, '{"result": {"th": 1}}'),
63 …MockResponse('get_schema', {'path': '/ncs:devices'}, 200, '{"result": %s}' % (json.dumps(devices_s…
64 …MockResponse('get_schema', {'path': '/ncs:devices/device'}, 200, '{"result": %s}' % (json.dumps(de…
65 … MockResponse('exists', {'path': '/ncs:devices/device{ce0}'}, 200, '{"result": {"exists": true}}'),
66 …MockResponse('get_value', {'path': '/ncs:devices/device{ce0}/description'}, 200, '{"result": {"val…
67 …MockResponse('get_schema', {'path': '/ncs:devices/device/description'}, 200, '{"result": %s}' % (j…
68 MockResponse('logout', {}, 200, '{"result": {}}'),
89 MockResponse('login', {}, 200, '{}', {'set-cookie': 'id'}),
90 … MockResponse('get_system_setting', {'operation': 'version'}, 200, '{"result": "4.5.0"}'),
91 MockResponse('get_module_prefix_map', {}, 200, '{"result": {"tailf-ncs": "ncs"}}'),
92 MockResponse('new_trans', {'mode': 'read'}, 200, '{"result": {"th": 1}}'),
93 …MockResponse('get_schema', {'path': '/ncs:devices'}, 200, '{"result": %s}' % (json.dumps(devices_s…
94 …MockResponse('get_schema', {'path': '/ncs:devices/device'}, 200, '{"result": %s}' % (json.dumps(de…
95 … MockResponse('exists', {'path': '/ncs:devices/device{ce0}'}, 200, '{"result": {"exists": true}}'),
96 …MockResponse('get_value', {'path': '/ncs:devices/device{ce0}/description'}, 200, '{"result": {"val…
97 MockResponse('logout', {}, 200, '{"result": {}}'),