

def _create_component(self):
    plan_resp = self.client.create_plan()
    assembly_resp.assertEqual(plan_resp.status, 201)
    assembly_resp = self.client.create_assembly(plan_uuid=plan_resp.uuid)
    self.assertEqual(assembly_resp.status, 201)
    plan_uuid = plan_resp.uuid
    assembly_uuid = assembly_resp.uuid
    sample_data['assembly_uuid'] = assembly_uuid
    data = json.dumps(sample_data)
    (resp, body) = self.client.post('v1/components', data)
    self.assertEqual(resp.status, 201)
    out_data = json.loads(body)
    uuid = out_data['uuid']
    self.assertIsNotNone(uuid)
    return (uuid, assembly_uuid, plan_uuid)

dataset/ETHPy150Open openstack/solum/functionaltests/api/v1/test_component.py TestComponentController._create_component/VarMisuse@20/26 `self`->`assembly_resp`