def test_equality(self): a = PassportElementErrorFrontSide(self.type, self.file_hash, self.message) b = PassportElementErrorFrontSide(self.type, self.file_hash, self.message) c = PassportElementErrorFrontSide(self.type, '', '') d = PassportElementErrorFrontSide('', self.file_hash, '') e = PassportElementErrorFrontSide('', '', self.message) f = PassportElementErrorSelfie(self.type, self.file_hash, self.message) assert a == b assert hash(a) == hash(b) assert a is not b assert a != c assert hash(a) != hash(c) assert a != d assert hash(a) != hash(d) assert a != e assert hash(a) != hash(e) assert a != f assert hash(a) != hash(f)
def passport_element_error_front_side(): return PassportElementErrorFrontSide( TestPassportElementErrorFrontSide.type_, TestPassportElementErrorFrontSide.file_hash, TestPassportElementErrorFrontSide.message, )