The `assertDictContainsSubset` method was deprecated in version 3.2 and removed in version 3.11. Reference: https://github.com/python/cpython/pull/28268 Example usage in edx-platform: https://github.com/openedx/edx-platform/blob/03a8f5daf78db505d40c46e3c592680fd5475526/cms/djangoapps/api/v1/tests/test_views/test_course_runs.py#L289 Example replacement: https://github.com/python/cpython/pull/28268#issuecomment-2228070826