def assert_info_logs_sap_learners_unlink(self, expected_messages):
with LogCapture(level=logging.INFO) as log_capture:<EOL><INDENT>call_command('<STR_LIT>')<EOL>for index, message in enumerate(expected_messages):<EOL><INDENT>assert message in log_capture.records[index].getMessage()<EOL><DEDENT><DEDENT>
DRY method to verify log messages for management command "unlink_inactive_sap_learners".