'Tests what happens when the lti listing rest endpoint gets a bad course_id'

def test_lti_rest_bad_course(self):

    bad_ids = [u'sf', u'dne/dne/dne', u'fo/ey/\\u5305']
    for bad_course_id in bad_ids:
        lti_rest_endpoints_url = 'courses/{}/lti_rest_endpoints/'.format(bad_course_id)
        response = self.client.get(lti_rest_endpoints_url)
        self.assertEqual(404, response.status_code)
