[issue22137] Test imaplib API on all methods specified in RFC 3501

Maciej Szulik report at bugs.python.org
Wed Apr 15 23:58:21 CEST 2015


Maciej Szulik added the comment:

Milan one more thing to change in your patch, in all your TCs you're modifying client state, I mean this part:

# lets cheat a bit here:
client.state = 'SELECTED'

It's OK to do that on the mocked server, but this is not acceptable doing on the tested library. It's better to call client.login() to change the state to 'AUTH' properly and only after that, call the actual method under test.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22137>
_______________________________________


More information about the Python-bugs-list mailing list