Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Update test to match new type of TRNG status values
Browse files Browse the repository at this point in the history
  • Loading branch information
xlz-jbleclere committed Dec 13, 2021
1 parent 2810d6a commit 1d0715a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1152,8 +1152,8 @@ def test_parameter_key_modification_with_get_set(accelize_drm, conf_json, cred_j
assert 'adaptive_proportion_test_error' in trng_status.keys()
assert 'repetition_count_test_error' in trng_status.keys()
assert isinstance(trng_status['security_alert_bit'], bool)
assert match(r'[0-9A-F]{8}', trng_status['adaptive_proportion_test_error'], IGNORECASE)
assert match(r'[0-9A-F]{8}', trng_status['repetition_count_test_error'], IGNORECASE)
assert isinstance(trng_status['adaptive_proportion_test_error'], int)
assert isinstance(trng_status['repetition_count_test_error'], int)
with pytest.raises(accelize_drm.exceptions.DRMBadArg) as excinfo:
drm_manager.set(trng_status={'security_alert_bit':1})
async_cb.assert_Error(accelize_drm.exceptions.DRMBadArg.error_code," cannot be overwritten")
Expand Down

0 comments on commit 1d0715a

Please sign in to comment.