def __eq__(self, other):
        """Is equal.

        :type other: TelnetSession
        """
        return (ConnectionParams.__eq__(self, other)
                and self.username == other.username
                and self.password == other.password)
Пример #2
0
 def __eq__(self, other):
     """
     :param other:
     :type other: TelnetSession
     :return:
     """
     return ConnectionParams.__eq__(
         self, other
     ) and self.username == other.username and self.password == other.password
Пример #3
0
    def __eq__(self, other):
        """Is equal.

        :param SSHSession other:
        """
        return all([
            ConnectionParams.__eq__(self, other),
            self.username == other.username,
            self.password == other.password,
            self.pkey == other.pkey,
        ])