Lines Matching refs:MockResponse

26 from .nso_module import MockResponse
37 MockResponse('login', {}, 200, '{}', {'set-cookie': 'id'}),
38MockResponse('get_system_setting', {'operation': 'version'}, 200, '{"result": "4.4.3"}'),
39 MockResponse('logout', {}, 200, '{"result": {}}'),
59 MockResponse('login', {}, 200, '{}', {'set-cookie': 'id'}),
60MockResponse('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}}'),
63MockResponse('get_schema', {'path': '/ncs:devices'}, 200, '{"result": %s}' % (json.dumps(devices_s…
64MockResponse('get_schema', {'path': '/ncs:devices/device'}, 200, '{"result": %s}' % (json.dumps(de…
65MockResponse('exists', {'path': '/ncs:devices/device{ce0}'}, 200, '{"result": {"exists": true}}'),
66MockResponse('get_value', {'path': '/ncs:devices/device{ce0}/description'}, 200, '{"result": {"val…
67MockResponse('get_schema', {'path': '/ncs:devices/device/description'}, 200, '{"result": %s}' % (j…
68 MockResponse('logout', {}, 200, '{"result": {}}'),
89 MockResponse('login', {}, 200, '{}', {'set-cookie': 'id'}),
90MockResponse('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}}'),
93MockResponse('get_schema', {'path': '/ncs:devices'}, 200, '{"result": %s}' % (json.dumps(devices_s…
94MockResponse('get_schema', {'path': '/ncs:devices/device'}, 200, '{"result": %s}' % (json.dumps(de…
95MockResponse('exists', {'path': '/ncs:devices/device{ce0}'}, 200, '{"result": {"exists": true}}'),
96MockResponse('get_value', {'path': '/ncs:devices/device{ce0}/description'}, 200, '{"result": {"val…
97 MockResponse('logout', {}, 200, '{"result": {}}'),