In a test I would use ``assert_true`` instead, since that works in both debug and release mode, and gives better error messages.