]> khamidou — GitHub mirrors - imapclient.git/commit
Added starttls unit tests and cleaned up starttls
authorMenno Smits <menno@freshfoo.com>
Mon, 13 Jul 2015 23:24:28 +0000 (11:24 +1200)
committerMenno Smits <menno@freshfoo.com>
Mon, 13 Jul 2015 23:24:28 +0000 (11:24 +1200)
commitc608fff72d6efa54dde018f7c26ca823a97c2e1e
tree3133277fddcbb01c157e5bd8e0c23ac3c120716f
parent7615de86e83e0097ed3ea2ff4cc76b14f37beedc
Added starttls unit tests and cleaned up starttls

- use _checkok() to check command response
- set _starttls_done, not _tls_established
- return data[0], don't check untagged responses

Also standardised error raised by _check_resp() across all Python
versions.
imapclient/imapclient.py
imapclient/test/test_starttls.py [new file with mode: 0644]