def put(self, url, data, params=None, headers=None, resource_name=None): return self.request('PUT', url, data=util.wrap(data, resource_name), params=params, headers=headers, resource_name=resource_name)
def test_wrap(): result = util.wrap(json.dumps(mock_json), 'flow-instance') assert_that(json.loads(result)['flowInstance'], equal_to(mock_json))