diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-09-14 13:04:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-14 13:04:11 -0400 |
commit | bb8b2ed7deb71431521d24486b0856845e7a7867 (patch) | |
tree | 3afa51a80166d3033bd1c793f1812bb7c9953155 /test | |
parent | 20daae1de93c1a73f454f3f3ba04bba03a348f81 (diff) | |
parent | d7256be807890892c988cc7d270e3d1bf951397c (diff) | |
download | podman-bb8b2ed7deb71431521d24486b0856845e7a7867.tar.gz podman-bb8b2ed7deb71431521d24486b0856845e7a7867.tar.bz2 podman-bb8b2ed7deb71431521d24486b0856845e7a7867.zip |
Merge pull request #11559 from jwhonce/wip/generator
Enhance bindings for IDE hints
Diffstat (limited to 'test')
-rw-r--r-- | test/apiv2/python/rest_api/test_v2_0_0_system.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/apiv2/python/rest_api/test_v2_0_0_system.py b/test/apiv2/python/rest_api/test_v2_0_0_system.py index 8171abb84..1140d09cf 100644 --- a/test/apiv2/python/rest_api/test_v2_0_0_system.py +++ b/test/apiv2/python/rest_api/test_v2_0_0_system.py @@ -30,13 +30,12 @@ class SystemTestCase(APITestCase): # Actor.ID is uppercase for compatibility self.assertIn("ID", obj["Actor"]) # Verify 1.22+ deprecated variants are present if current originals are - if (obj["Actor"]["ID"]): - self.assertEqual(obj["Actor"]["ID"], obj["id"]) - if (obj["Action"]): - self.assertEqual(obj["Action"], obj["status"]) - if (obj["Actor"].get("Attributes") and obj["Actor"]["Attributes"].get("image")): - self.assertEqual(obj["Actor"]["Attributes"]["image"], obj["from"]) - + if obj["Actor"]["ID"]: + self.assertEqual(obj["Actor"]["ID"], obj["id"]) + if obj["Action"]: + self.assertEqual(obj["Action"], obj["status"]) + if obj["Actor"].get("Attributes") and obj["Actor"]["Attributes"].get("image"): + self.assertEqual(obj["Actor"]["Attributes"]["image"], obj["from"]) def test_ping(self): required_headers = ( |