def METHOD_NAME(self):
    name = "list_groups_cours_10.csv"
    with open(os.path.join(TEST_DATA_ROOT, "eleve_data.csv")) as f:
        csv_file = f.read()
        list_mail = csv_file.split("\n")
    for email in list_mail:
        user = User.objects.create(email=email, username=email.split("@")[0])
        self.activity.student.add(user)
    response = self.client.get('http://127.0.0.1:8000/activity/export_csv/10/')
    self.assertEquals(response.status_code, 403)
    self.client.force_login(user=self.user)
    response = self.client.get('http://127.0.0.1:8000/activity/export_csv/10/')
    self.assertEquals(type(response), HttpResponse)
    self.assertEquals(response.status_code, 200)
    self.assertEquals(response["Content-Disposition"], u"attachment; filename={0}".format(name))