def METHOD_NAME(self):
    self.make_test_data()
    messages = check_sanity()
    self.assertFalse(messages.has_error)
    self.assertFalse(messages.has_warning)
    with self.assertLogs() as capture:
        messages.log_messages()
        self.assertEqual(len(capture.output), 1)
        self.assertEqual(capture.records[0].levelno, logging.INFO)
        self.assertEqual(
            capture.records[0].message,
            "Sanity checker detected no issues.",
        )