def METHOD_NAME(self):
    # ensure filter_debug_logs() decodes the logged string.
    capture = testlib.LogCapturer()
    capture.start()
    try:
        context = self.docker_ssh(
            username='mitogen__has_sudo',
            password='has_sudo_password',
            ssh_debug_level=3,
        )
    finally:
        s = capture.stop()
    expect = "%s: debug1: Reading configuration data" % (context.name,)
    self.assertIn(expect, s)