tests.py fix

This commit is contained in:
ingvar1995 2016-10-23 00:43:18 +03:00
parent b807daa3ff
commit 3a90865fd0
3 changed files with 6 additions and 7 deletions

View file

@ -25,7 +25,7 @@ class Friend(contact.Contact):
"""
try:
tr = list(filter(lambda x: x.get_type() == MESSAGE_TYPE['FILE_TRANSFER'] and x.is_active(file_number),
self._corr))[0]
self._corr))[0]
tr.set_status(status)
i = self._corr.index(tr)
if inline: # inline was loaded