def METHOD_NAME(self):
    client = APIClient()
    client.force_authenticate(user=self.superuser)
    response = client.put(
        "/api/v2/courses/2/",
        {
            "code": "123456",
            "name": "test course",
            "course_url": "Course-Url",
            "instance_name": "Fall 2011 day 1 fixed",
            "url": "T-00.1000_d0-fixed",
            "language": "en",
            "starting_time": "2022-01-01T12:00",
            "ending_time": "2022-05-31T12:00",
            "visible_to_students": False,
            "configure_url": "https://grader.cs.aalto.fi/test/url/",
            "teachers": [
                "staff",
                "newteacher"
            ]
        },
        format='json'
    )
    data = response.data
    self.assertEqual(data['id'], 2)
    course = CourseInstance.objects.get(id=2)
    self.assertEqual(course.instance_name, "Fall 2011 day 1 fixed")
    self.assertEqual(course.url, "T-00.1000_d0-fixed")
    t = map(lambda x: x.user.username, course.teachers)
    self.assertIn('staff', t)
    self.assertIn('newteacher', t)