def METHOD_NAME(self, cmd, exp):
    stdout, _ = self.ssh_command(cmd)
    for line in stdout:
        if exp in line:
            break
    else:
        self.fail('"%s" output does not contain "%s"' % (cmd, exp))