Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
def test_wrap():
    result = util.wrap(json.dumps(mock_json), 'flow-instance')

    assert_that(json.loads(result)['flowInstance'], equal_to(mock_json))