def test_update_group(self): with self.app.test_request_context('/'): result = groups.update_group(self.group_id, copy.copy(self.group_params2)) self.assertEqual(result, None) result = groups.get_group(self.group_id) self.assertEqual(result, self.group_params2)
def _get(name): if request.args.get('params') == 'all': params, _groups = get_group_params(name) return jsonify(params) return jsonify(get_group(name))
def test_get_group(self): with self.app.test_request_context('/'): result = groups.get_group(self.group_id) self.assertEqual(result, self.group_params)