mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 14:14:22 +01:00
Adds missing tool tests
This commit is contained in:
@@ -9,6 +9,6 @@ def check_sha256_hex_format(value):
|
|||||||
value(:mod:`str`): the value to be checked.
|
value(:mod:`str`): the value to be checked.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
:mod:`bool`: Wether or not the value matches the format.
|
:mod:`bool`: Whether or not the value matches the format.
|
||||||
"""
|
"""
|
||||||
return isinstance(value, str) and re.match(r"^[0-9A-Fa-f]{64}$", value) is not None
|
return isinstance(value, str) and re.match(r"^[0-9A-Fa-f]{64}$", value) is not None
|
||||||
|
|||||||
Reference in New Issue
Block a user