1. Login as a teacher, access a course and in the course settings set the availability to 'This course is not available to students'.
2. Login as a student and check that the course no longer appears in the list of courses.
3. Check that you are unable to enter the course, even knowing the exact URL.