summaryrefslogtreecommitdiff
path: root/tests/test_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_server.py')
-rw-r--r--tests/test_server.py4
1 files changed, 3 insertions, 1 deletions
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 @@
1# -*- coding: utf-8 -*- 1# -*- coding: utf-8 -*-
2# SPDX-License-Identifier: BSD-2-Clause-FreeBSD 2# SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3# 3#
4# Copyright (c) 2020-2022, Simeon Simeonov 4# Copyright (c) 2020-2023, Simeon Simeonov
5# All rights reserved. 5# All rights reserved.
6# 6#
7# Redistribution and use in source and binary forms, with or without 7# Redistribution and use in source and binary forms, with or without
@@ -80,6 +80,7 @@ def test_state_validation_md5():
80 assert state.validated is False 80 assert state.validated is False
81 assert state.response_validates('0x9e876134d90499dd') is True 81 assert state.response_validates('0x9e876134d90499dd') is True
82 assert state.response_validates('INCH SEA ANNE LONG AHEM TOUR') is True 82 assert state.response_validates('INCH SEA ANNE LONG AHEM TOUR') is True
83 assert state.ot_hex == '7965e05436f5029f'
83 assert state.validated is True 84 assert state.validated is True
84 85
85 86
@@ -94,6 +95,7 @@ def test_state_validation_sha1():
94 assert state.validated is False 95 assert state.validated is False
95 assert state.response_validates('0xbb9e6ae1979d8ff4') is True 96 assert state.response_validates('0xbb9e6ae1979d8ff4') is True
96 assert state.response_validates('MILT VARY MAST OK SEES WENT') is True 97 assert state.response_validates('MILT VARY MAST OK SEES WENT') is True
98 assert state.ot_hex == '63d936639734385b'
97 assert state.validated is True 99 assert state.validated is True
98 100
99 101