Skip to content

Commit

Permalink
Merge pull request #23 from intelzhongjie/main
Browse files Browse the repository at this point in the history
python: adjust test case for Canonical Event
  • Loading branch information
wenhuizhang authored Mar 5, 2024
2 parents 107b461 + 2d4d7da commit 347377c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/python/tests/test_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from cctrusted_base.ccreport import CcReport, CcReportData, CcReportSignature
from cctrusted_base.tcg import TcgImrEvent, TcgPcClientImrEvent
from cctrusted_base.tcgcel import TcgTpmsCelEvent
import pytest

def test_get_default_algorithms(vm_sdk, default_alg_id):
Expand Down Expand Up @@ -81,7 +82,7 @@ def test_get_cc_eventlog_with_valid_input(vm_sdk):
event_count = 0
for e in eventlog:
event_count += 1
assert isinstance(e, (TcgImrEvent, TcgPcClientImrEvent))
assert isinstance(e, (TcgImrEvent, TcgPcClientImrEvent, TcgTpmsCelEvent))

def test_get_cc_report_with_valid_input(vm_sdk, check_quote_valid_input):
"""Test get_cc_report() function with valid input."""
Expand Down

0 comments on commit 347377c

Please sign in to comment.