def METHOD_NAME(self):
    with self.assertLogs() as capture:
        call_command("document_sanity_checker")
    self.assertEqual(len(capture.output), 1)
    self.assertIn("Sanity checker detected no issues.", capture.output[0])