

def create_role(self, release_id, data, expect_errors=False):
    return self.app.post(reverse('RoleCollectionHandler', {
        'release_id': release_id,
    }), jsonutils.dumps(data), headers=self.default_headers, expect_errors=expect_errors)

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/base.py EnvironmentManager.create_role/original