def check_not_empty(collection, message):
if not collection:<EOL><INDENT>raise AssertionError(message)<EOL><DEDENT>
Tests if a collection is not empty.

:param collection: (Collection), the collection tested to see if it is not empty.
:param message: (str), the error message.