Skip to content

Commit ef48a09

Browse files
committed
Remove test_passportdata
I had totally missed it :P and we have test_passport now
1 parent 14d75a2 commit ef48a09

File tree

2 files changed

+14
-67
lines changed

2 files changed

+14
-67
lines changed

tests/test_passport.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,17 @@ def test_all_types(self, passport_data, bot, all_passport_data):
160160
'data': all_passport_data,
161161
'credentials': credentials
162162
}, bot=bot), PassportData)
163+
164+
def test_equality(self, passport_data):
165+
a = PassportData(passport_data.data, passport_data.credentials)
166+
b = PassportData(passport_data.data, passport_data.credentials)
167+
168+
assert a == b
169+
assert hash(a) == hash(b)
170+
assert a is not b
171+
172+
passport_data.credentials.hash = 'NOTAPROPERHASH'
173+
c = PassportData(passport_data.data, passport_data.credentials)
174+
175+
assert a != c
176+
assert hash(a) != hash(c)

tests/test_passportdata.py

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)