def METHOD_NAME(self):
    base_cmd = self.get_ssh_command(pty=False)
    out, _ = self.exec_command(base_cmd + ["whoami"])
    self.assertEqual(out.strip().lower(), self.SSH_USER.lower())
    out, _ = self.exec_command(base_cmd + ["tty"])
    self.assertEqual(out, "not a tty")