diff --git a/cms/lib/xblock/tagging/test.py b/cms/lib/xblock/tagging/test.py index 783649946d..f00d1a53c8 100644 --- a/cms/lib/xblock/tagging/test.py +++ b/cms/lib/xblock/tagging/test.py @@ -180,11 +180,11 @@ class StructuredTagsAsideTestCase(ModuleStoreTestCase): self.assertEqual(option_values2, ['Learned a few things', 'Learned everything', 'Learned nothing']) # Now ensure the acid_aside is not in the result - self.assertNotRegexpMatches(problem_html, r"data-block-type=[\"\']acid_aside[\"\']") # lint-amnesty, pylint: disable=deprecated-method + self.assertNotRegex(problem_html, r"data-block-type=[\"\']acid_aside[\"\']") # Ensure about video don't have asides video_html = get_preview_fragment(request, self.video, context).content - self.assertNotRegexpMatches(video_html, "