Lines Matching refs:MockResponse
27 from .nso_module import MockResponse
40 MockResponse('login', {}, 200, '{}', {'set-cookie': 'id'}),
41 … MockResponse('get_system_setting', {'operation': 'version'}, 200, '{"result": "4.5.0"}'),
42 MockResponse('new_trans', {'mode': 'read'}, 200, '{"result": {"th": 1}}'),
43 …MockResponse('get_schema', {'path': path}, 200, '{"error": {"data": {"param": "path"}, "type": "rp…
44 MockResponse('logout', {}, 200, '{"result": {}}'),
65 MockResponse('login', {}, 200, '{}', {'set-cookie': 'id'}),
66 … MockResponse('get_system_setting', {'operation': 'version'}, 200, '{"result": "4.5.0"}'),
67 MockResponse('new_trans', {'mode': 'read'}, 200, '{"result": {"th": 1}}'),
68 … MockResponse('get_schema', {'path': path}, 200, '{"result": %s}' % (json.dumps(schema, ))),
69 MockResponse('logout', {}, 200, '{"result": {}}'),
91 MockResponse('login', {}, 200, '{}', {'set-cookie': 'id'}),
92 … MockResponse('get_system_setting', {'operation': 'version'}, 200, '{"result": "4.5.0"}'),
93 MockResponse('new_trans', {'mode': 'read'}, 200, '{"result": {"th": 1}}'),
94 … MockResponse('get_schema', {'path': path}, 200, '{"result": %s}' % (json.dumps(schema, ))),
95 …MockResponse('run_action', {'path': path, 'params': action_input}, 200, '{"result": {"result": tru…
96 MockResponse('logout', {}, 200, '{"result": {}}'),
118 MockResponse('login', {}, 200, '{}', {'set-cookie': 'id'}),
119 … MockResponse('get_system_setting', {'operation': 'version'}, 200, '{"result": "4.5.0"}'),
120 MockResponse('new_trans', {'mode': 'read'}, 200, '{"result": {"th": 1}}'),
121 … MockResponse('get_schema', {'path': path}, 200, '{"result": %s}' % (json.dumps(schema, ))),
122 MockResponse('run_action', {'path': path, 'params': action_input}, 200,
124 MockResponse('logout', {}, 200, '{"result": {}}'),
147 MockResponse('login', {}, 200, '{}', {'set-cookie': 'id'}),
148 … MockResponse('get_system_setting', {'operation': 'version'}, 200, '{"result": "4.5.0"}'),
149 MockResponse('new_trans', {'mode': 'read'}, 200, '{"result": {"th": 1}}'),
150 … MockResponse('get_schema', {'path': path}, 200, '{"result": %s}' % (json.dumps(schema, ))),
151 MockResponse('run_action', {'path': path, 'params': action_input}, 200,
153 MockResponse('logout', {}, 200, '{"result": {}}'),