'Check that invalid \'student_id\' raises Http404 for both old mongo and
split mongo courses.'

@ddt.data(ModuleStoreEnum.Type.mongo, ModuleStoreEnum.Type.split)
def test_student_progress_with_valid_and_invalid_id(self, default_store):

    self.course = CourseFactory.create(default_store=default_store)
    CourseEnrollmentFactory(user=self.user, course_id=self.course.id, mode=CourseMode.HONOR)
    invalid_student_ids = [991021, 'azU3N_8$']
    for invalid_id in invalid_student_ids:
        resp = self.client.get(reverse('student_progress', args=[unicode(self.course.id), invalid_id]))
        self.assertEquals(resp.status_code, 404)
    self._get_student_progress_page()
