def METHOD_NAME(self):
    self.client.login(username="admin", password="password")
    learner = FacilityUser.objects.create(
        username="learner", facility=self.facility
    )
    self.classroom.add_member(learner)
    new_lesson = {
        "title": "New Lesson",
        "description": "An awesome lesson",
        "created_by": self.admin_user.id,
        "lesson_assignments": [self.classroom.id],
        "collection": self.classroom.id,
        "learner_ids": [learner.id],
        "resources": [],
    }
    post_response = self.client.post(
        reverse("kolibri:core:lesson-list"), new_lesson, format="json"
    )
    self.assertEqual(post_response.status_code, 201)
    lesson_id = post_response.data["id"]
    lesson = Lesson.objects.get(id=lesson_id)
    adhoc_group = AdHocGroup.objects.get(assigned_lessons__lesson=lesson)
    self.assertEqual(list(adhoc_group.get_learners()), [learner])
    get_response = self.client.get(
        reverse("kolibri:core:lesson-detail", kwargs={"pk": lesson_id})
    )
    self.assertEqual(get_response.status_code, 200)
    self.assertEqual(get_response.data["learner_ids"], [learner.id])