From c2f78419b242df9a4872905d41332e5ea9fcfdb6 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Thu, 5 Jan 2023 17:00:35 +0100 Subject: Add the OTPState.ot_hex property --- tests/test_generator.py | 2 +- tests/test_main.py | 2 +- tests/test_server.py | 4 +++- tests/test_static.py | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/test_generator.py b/tests/test_generator.py index aa795a3..b4bb961 100644 --- a/tests/test_generator.py +++ b/tests/test_generator.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # SPDX-License-Identifier: BSD-2-Clause-FreeBSD # -# Copyright (c) 2020-2022, Simeon Simeonov +# Copyright (c) 2020-2023, Simeon Simeonov # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/tests/test_main.py b/tests/test_main.py index a331274..35bd2a2 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # SPDX-License-Identifier: BSD-2-Clause-FreeBSD # -# Copyright (c) 2020-2022, Simeon Simeonov +# Copyright (c) 2020-2023, Simeon Simeonov # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/tests/test_server.py b/tests/test_server.py index 3d3b77d..64e7f67 100644 --- a/tests/test_server.py +++ b/tests/test_server.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # SPDX-License-Identifier: BSD-2-Clause-FreeBSD # -# Copyright (c) 2020-2022, Simeon Simeonov +# Copyright (c) 2020-2023, Simeon Simeonov # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -80,6 +80,7 @@ def test_state_validation_md5(): assert state.validated is False assert state.response_validates('0x9e876134d90499dd') is True assert state.response_validates('INCH SEA ANNE LONG AHEM TOUR') is True + assert state.ot_hex == '7965e05436f5029f' assert state.validated is True @@ -94,6 +95,7 @@ def test_state_validation_sha1(): assert state.validated is False assert state.response_validates('0xbb9e6ae1979d8ff4') is True assert state.response_validates('MILT VARY MAST OK SEES WENT') is True + assert state.ot_hex == '63d936639734385b' assert state.validated is True diff --git a/tests/test_static.py b/tests/test_static.py index a942374..7635e5e 100644 --- a/tests/test_static.py +++ b/tests/test_static.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # SPDX-License-Identifier: BSD-2-Clause-FreeBSD # -# Copyright (c) 2020-2022, Simeon Simeonov +# Copyright (c) 2020-2023, Simeon Simeonov # All rights reserved. # # Redistribution and use in source and binary forms, with or without -- cgit v1.3