diff --git a/setup.py b/setup.py index 80e149f..85a48d0 100755 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setuptools.setup( name="enochecker", - version="0.1.4", + version="0.2.0", author="domenukk", author_email="dmaier@sect.tu-berlin.de", description="Library to build checker scripts for EnoEngine A/D CTF Framework in Python", diff --git a/src/enochecker/utils.py b/src/enochecker/utils.py index 0895168..c655aea 100644 --- a/src/enochecker/utils.py +++ b/src/enochecker/utils.py @@ -44,7 +44,7 @@ def assert_in(o1: Any, o2: Any, message: Optional[str] = None) -> None: :param message: An optional message that will be part of the error """ if message is None: - message = "{} is not in {}".format(o1, o2) + message = "Received unexpected response." if not o2 or o1 not in o2: raise BrokenServiceException(message) @@ -61,7 +61,7 @@ def assert_equals( :param autobyteify: will call ensure_bytes on both parameters. """ if message is None: - message = "{} is not equal to {}".format(o1, o2) + message = "Received unexpected response." if autobyteify: o1 = ensure_bytes(o1) o2 = ensure_bytes(o2)