Remove iteritems() calls

This commit is contained in:
Griatch 2018-10-13 19:49:24 +02:00
parent ebb2fb6c1c
commit d318861399
3 changed files with 6 additions and 6 deletions

View file

@ -80,7 +80,7 @@ class AuditingTest(EvenniaTest):
parsed from the Session object.
"""
log = self.session.audit(src='client', text=[['hello']])
obj = {k:v for k,v in log.iteritems() if k in ('direction', 'protocol', 'application', 'text')}
obj = {k:v for k,v in log.items() if k in ('direction', 'protocol', 'application', 'text')}
self.assertEqual(obj, {
'direction': 'RCV',
'protocol': 'telnet',