

def test_components_get_all(self):
    (uuid, assembly_uuid, plan_uuid) = self._create_component()
    (resp, body) = self.client.get('v1/components')
    data = json.loads(body)
    self.assertEqual(resp.status, 200)
    filtered = [com for com in data if (com['uuid'] == uuid)]
    self.assertEqual(len(data), 1)
    self.assertEqual(filtered[0]['uuid'], uuid)
    self._delete_component(uuid)

dataset/ETHPy150Open openstack/solum/functionaltests/api/v1/test_component.py TestComponentController.test_components_get_all/VarMisuse@84/105 `filtered`->`data`