From 08d2a0002a22fb6b9db2988998797afcb2d2d2bd Mon Sep 17 00:00:00 2001 From: Giuseppe De Marco Date: Mon, 25 Mar 2024 16:43:24 +0100 Subject: [PATCH] chore: exteded detail in tc composition unit test --- .../authority/tests/test_02_trust_anchor_intermediary.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spid_cie_oidc/authority/tests/test_02_trust_anchor_intermediary.py b/spid_cie_oidc/authority/tests/test_02_trust_anchor_intermediary.py index b5e6337d..587689fb 100644 --- a/spid_cie_oidc/authority/tests/test_02_trust_anchor_intermediary.py +++ b/spid_cie_oidc/authority/tests/test_02_trust_anchor_intermediary.py @@ -139,8 +139,10 @@ def test_trust_chain_valid_with_intermediary(self, mocked): _p3 = unpad_jwt_payload(tc_ser[3]) self.assertEqual(_p0['iss'], _p0['sub']) + self.assertEqual(_p0['iss'], _p1['sub']) self.assertNotEqual(_p2['iss'], _p1['sub']) self.assertNotEqual(_p2['iss'], _p2['sub']) + self.assertEqual(_p3['sub'], _p2['iss']) self.assertEqual(_p3['iss'], _p3['sub']) dumps = dumps_statements_from_trust_chain_to_db(trust_chain)