def check_not_none(val, message):
if val is None:<EOL><INDENT>raise AssertionError(message)<EOL><DEDENT>
Tests if an argument is not ``None``.

:param val: (object), the argument tested to see if it is not ``None``.
:param message: (str), the error message.