Seems like it would be better to write this line as `'"{}"'.format(mock_static_content.convert_legacy_static_url_with_course_id())`