mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
python:tests: Manually raise AssertionError
This removes the last dependency on ‘self’ in this method. Signed-off-by: Jo Sutton <josutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
95e80bf1e0
commit
5682df15a0
@ -71,7 +71,8 @@ class DCKeytabTests(TestCaseInTempDir):
|
||||
multiple_entry = ndr_unpack(krb5ccache.MULTIPLE_KEYTAB_ENTRIES, keytab_bytes)
|
||||
entry = multiple_entry.entry
|
||||
entry_as_tuple = entry_to_tuple(entry)
|
||||
self.assertNotIn(entry_as_tuple, keytab_set)
|
||||
if entry_as_tuple in keytab_set:
|
||||
raise AssertionError('entry found multiple times in keytab')
|
||||
keytab_set.add(entry_as_tuple)
|
||||
|
||||
keytab_bytes = multiple_entry.further_entry
|
||||
|
Loading…
Reference in New Issue
Block a user