'Verify that page can get the all modes with archived course.'

@ddt.data('username', 'email')
def test_get_enrollments_with_expired_mode(self, search_string_type):

    self.set_course_end_date_and_expiry()
    url = reverse('support:enrollment_list', kwargs={'username_or_email': getattr(self.student, search_string_type)})
    response = self.client.get(url)
    self._assert_generated_modes(response)
