============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-9.0.2, pluggy-1.6.0
rootdir: /workspace/imapclient
configfile: pyproject.toml
plugins: cov-7.0.0, metadata-3.1.1, anyio-4.12.1, json-report-1.5.0
collected 267 items

tests/test_auth.py FFF                                                   [  1%]
tests/test_datetime_util.py ........                                     [  4%]
tests/test_enable.py FFFFF                                               [  5%]
tests/test_fixed_offset.py ......                                        [  8%]
tests/test_folder_status.py FFF                                          [  9%]
tests/test_imap_utf7.py ...                                              [ 10%]
tests/test_imapclient.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 28%]
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF                                           [ 39%]
tests/test_init.py FFFF.F.                                               [ 41%]
tests/test_response_lexer.py ..............                              [ 47%]
tests/test_response_parser.py ...........................FFFF........F.. [ 62%]
..........FFF                                                            [ 67%]
tests/test_search.py FFFFFFFFFFFFFFFFFFFF                                [ 75%]
tests/test_sort.py FFFF                                                  [ 76%]
tests/test_starttls.py FFFF                                              [ 78%]
tests/test_store.py FFFFFFFFF                                            [ 81%]
tests/test_thread.py FFFF                                                [ 83%]
tests/test_util_functions.py ........................................    [ 98%]
tests/test_version.py .....                                              [100%]

=================================== FAILURES ===================================
___________________________ TestPlainLogin.test_fail ___________________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba11e620>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
__________________________ TestPlainLogin.test_simple __________________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba3491e0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_______________ TestPlainLogin.test_with_authorization_identity ________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9effcd0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________________ TestEnable.test_failed1 ____________________________

self = <tests.test_enable.TestEnable testMethod=test_failed1>

    def setUp(self):
>       super(TestEnable, self).setUp()

tests/test_enable.py:14: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0bf880>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________________ TestEnable.test_failed2 ____________________________

self = <tests.test_enable.TestEnable testMethod=test_failed2>

    def setUp(self):
>       super(TestEnable, self).setUp()

tests/test_enable.py:14: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9ff7370>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________________ TestEnable.test_multiple ___________________________

self = <tests.test_enable.TestEnable testMethod=test_multiple>

    def setUp(self):
>       super(TestEnable, self).setUp()

tests/test_enable.py:14: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0c1f00>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________________ TestEnable.test_success ____________________________

self = <tests.test_enable.TestEnable testMethod=test_success>

    def setUp(self):
>       super(TestEnable, self).setUp()

tests/test_enable.py:14: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9ff7370>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_________________________ TestEnable.test_wrong_state __________________________

self = <tests.test_enable.TestEnable testMethod=test_wrong_state>

    def setUp(self):
>       super(TestEnable, self).setUp()

tests/test_enable.py:14: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba020970>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_________________________ TestFolderStatus.test_basic __________________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0c8ee0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_____________________ TestFolderStatus.test_extra_response _____________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0bcee0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
________________________ TestFolderStatus.test_literal _________________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0cadd0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_________________________ TestListFolders.test_blanks __________________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0218a0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_____________________ TestListFolders.test_empty_response ______________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0cb7f0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
____________________ TestListFolders.test_folder_encode_off ____________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba021db0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
____________________ TestListFolders.test_funky_characters _____________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0c9cc0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
______________________ TestListFolders.test_list_folders _______________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0c1990>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_____________________ TestListFolders.test_list_folders_NO _____________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0cab30>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
____________________ TestListFolders.test_list_sub_folders _____________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0c30d0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________ TestListFolders.test_list_sub_folders_NO ___________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9ef7850>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
__________________________ TestListFolders.test_mixed __________________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9eff610>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_____________________ TestListFolders.test_quoted_specials _____________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9ef6a10>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_________________________ TestListFolders.test_simple __________________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9effe20>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
______________ TestListFolders.test_unquoted_numeric_folder_name _______________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba411ae0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_______ TestListFolders.test_unquoted_numeric_folder_name_parsed_as_long _______
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0f4280>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
______________________ TestListFolders.test_utf7_decoding ______________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba411b10>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_____________________ TestListFolders.test_without_quotes ______________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0be680>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_______ TestFindSpecialFolder.test_find_special_folder_with_special_use ________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba413f40>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_ TestFindSpecialFolder.test_find_special_folder_with_special_use_single_flag __
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0c1000>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_ TestFindSpecialFolder.test_find_special_folder_without_special_use_nor_namespace _
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba11ff40>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_________________________ TestSelectFolder.test_normal _________________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0c8910>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
________________________ TestSelectFolder.test_unselect ________________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9eff910>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_________________________ TestAppend.test_multiappend __________________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0c91b0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________ TestAppend.test_multiappend_with_flags_and_internaldate ____________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9efcdc0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
________________________ TestAppend.test_with_msg_time _________________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0ca500>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_______________________ TestAppend.test_without_msg_time _______________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9efc0a0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
__________________________ TestAclMethods.test_getacl __________________________

self = <tests.test_imapclient.TestAclMethods testMethod=test_getacl>

    def setUp(self):
>       super(TestAclMethods, self).setUp()

tests/test_imapclient.py:419: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0cb280>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
__________________________ TestAclMethods.test_setacl __________________________

self = <tests.test_imapclient.TestAclMethods testMethod=test_setacl>

    def setUp(self):
>       super(TestAclMethods, self).setUp()

tests/test_imapclient.py:419: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0794b0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
__________________________ TestQuota.test__get_quota ___________________________

self = <tests.test_imapclient.TestQuota testMethod=test__get_quota>

    def setUp(self):
>       super(TestQuota, self).setUp()

tests/test_imapclient.py:443: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba11d870>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
________________________ TestQuota.test_get_quota_root _________________________

self = <tests.test_imapclient.TestQuota testMethod=test_get_quota_root>

    def setUp(self):
>       super(TestQuota, self).setUp()

tests/test_imapclient.py:443: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba07b370>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
__________________________ TestQuota.test_parse_quota __________________________

self = <tests.test_imapclient.TestQuota testMethod=test_parse_quota>

    def setUp(self):
>       super(TestQuota, self).setUp()

tests/test_imapclient.py:443: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0bc6a0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________________ TestQuota.test_set_quota ___________________________

self = <tests.test_imapclient.TestQuota testMethod=test_set_quota>

    def setUp(self):
>       super(TestQuota, self).setUp()

tests/test_imapclient.py:443: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9efdf00>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
______________ TestIdleAndNoop.test_consume_until_tagged_response ______________

self = <tests.test_imapclient.TestIdleAndNoop testMethod=test_consume_until_tagged_response>

    def setUp(self):
>       super(TestIdleAndNoop, self).setUp()

tests/test_imapclient.py:525: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0c3ca0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
__________________________ TestIdleAndNoop.test_idle ___________________________

self = <tests.test_imapclient.TestIdleAndNoop testMethod=test_idle>

    def setUp(self):
>       super(TestIdleAndNoop, self).setUp()

tests/test_imapclient.py:525: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba079a50>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________ TestIdleAndNoop.test_idle_check_blocking ___________________

self = <tests.test_imapclient.TestIdleAndNoop testMethod=test_idle_check_blocking>

    def setUp(self):
>       super(TestIdleAndNoop, self).setUp()

tests/test_imapclient.py:525: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0bcf10>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
________________ TestIdleAndNoop.test_idle_check_blocking_poll _________________

self = <tests.test_imapclient.TestIdleAndNoop testMethod=test_idle_check_blocking_poll>

    def setUp(self):
>       super(TestIdleAndNoop, self).setUp()

tests/test_imapclient.py:525: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0c2ef0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________ TestIdleAndNoop.test_idle_check_timeout ____________________

self = <tests.test_imapclient.TestIdleAndNoop testMethod=test_idle_check_timeout>

    def setUp(self):
>       super(TestIdleAndNoop, self).setUp()

tests/test_imapclient.py:525: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fad1b0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_________________ TestIdleAndNoop.test_idle_check_timeout_poll _________________

self = <tests.test_imapclient.TestIdleAndNoop testMethod=test_idle_check_timeout_poll>

    def setUp(self):
>       super(TestIdleAndNoop, self).setUp()

tests/test_imapclient.py:525: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9e73910>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
__________________ TestIdleAndNoop.test_idle_check_with_data ___________________

self = <tests.test_imapclient.TestIdleAndNoop testMethod=test_idle_check_with_data>

    def setUp(self):
>       super(TestIdleAndNoop, self).setUp()

tests/test_imapclient.py:525: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9f3a200>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
________________ TestIdleAndNoop.test_idle_check_with_data_poll ________________

self = <tests.test_imapclient.TestIdleAndNoop testMethod=test_idle_check_with_data_poll>

    def setUp(self):
>       super(TestIdleAndNoop, self).setUp()

tests/test_imapclient.py:525: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0c2650>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
________________________ TestIdleAndNoop.test_idle_done ________________________

self = <tests.test_imapclient.TestIdleAndNoop testMethod=test_idle_done>

    def setUp(self):
>       super(TestIdleAndNoop, self).setUp()

tests/test_imapclient.py:525: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9ef5bd0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
__________________________ TestIdleAndNoop.test_noop ___________________________

self = <tests.test_imapclient.TestIdleAndNoop testMethod=test_noop>

    def setUp(self):
>       super(TestIdleAndNoop, self).setUp()

tests/test_imapclient.py:525: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0f7b20>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
____________________ TestDebugLogging.test_IMAP_is_patched _____________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba4111b0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________ TestDebugLogging.test_redacted_password ____________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9e70700>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
______________________ TestTimeNormalisation.test_default ______________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba07b1c0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________ TestTimeNormalisation.test_pass_through ____________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0c9000>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
__________________________ TestNamespace.test_complex __________________________

self = <tests.test_imapclient.TestNamespace testMethod=test_complex>

    def setUp(self):
>       super(TestNamespace, self).setUp()

tests/test_imapclient.py:796: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fbf0d0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
______________________ TestNamespace.test_folder_decoding ______________________

self = <tests.test_imapclient.TestNamespace testMethod=test_folder_decoding>

    def setUp(self):
>       super(TestNamespace, self).setUp()

tests/test_imapclient.py:796: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fc7430>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
________________________ TestNamespace.test_other_only _________________________

self = <tests.test_imapclient.TestNamespace testMethod=test_other_only>

    def setUp(self):
>       super(TestNamespace, self).setUp()

tests/test_imapclient.py:796: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9f08cd0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
__________________________ TestNamespace.test_simple ___________________________

self = <tests.test_imapclient.TestNamespace testMethod=test_simple>

    def setUp(self):
>       super(TestNamespace, self).setUp()

tests/test_imapclient.py:796: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba11f640>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
__________________ TestNamespace.test_without_folder_decoding __________________

self = <tests.test_imapclient.TestNamespace testMethod=test_without_folder_decoding>

    def setUp(self):
>       super(TestNamespace, self).setUp()

tests/test_imapclient.py:796: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0cb010>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
________________________ TestCapabilities.test_caching _________________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fbe590>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_______________________ TestCapabilities.test_decorator ________________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0cb040>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_____________________ TestCapabilities.test_has_capability _____________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fb5870>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________ TestCapabilities.test_post_auth_request ____________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9e6f0a0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
________________________ TestCapabilities.test_preauth _________________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fd9210>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_________ TestCapabilities.test_server_returned_capability_after_auth __________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba11d480>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_____________________ TestCapabilities.test_with_starttls ______________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0bc760>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
________________________________ TestId.test_id ________________________________

self = <tests.test_imapclient.TestId testMethod=test_id>

    def setUp(self):
>       super(TestId, self).setUp()

tests/test_imapclient.py:917: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9ee34c0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
________________________ TestId.test_invalid_parameters ________________________

self = <tests.test_imapclient.TestId testMethod=test_invalid_parameters>

    def setUp(self):
>       super(TestId, self).setUp()

tests/test_imapclient.py:917: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba078ac0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
____________________________ TestId.test_no_support ____________________________

self = <tests.test_imapclient.TestId testMethod=test_no_support>

    def setUp(self):
>       super(TestId, self).setUp()

tests/test_imapclient.py:917: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9f0cd00>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_________________________ TestRawCommand.test_complex __________________________

self = <tests.test_imapclient.TestRawCommand testMethod=test_complex>

    def setUp(self):
>       super(TestRawCommand, self).setUp()

tests/test_imapclient.py:946: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fccc40>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_____________________ TestRawCommand.test_embedded_literal _____________________

self = <tests.test_imapclient.TestRawCommand testMethod=test_embedded_literal>

    def setUp(self):
>       super(TestRawCommand, self).setUp()

tests/test_imapclient.py:946: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fa4670>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_________________ TestRawCommand.test_failed_continuation_wait _________________

self = <tests.test_imapclient.TestRawCommand testMethod=test_failed_continuation_wait>

    def setUp(self):
>       super(TestRawCommand, self).setUp()

tests/test_imapclient.py:946: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9ef5570>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
____________________ TestRawCommand.test_invalid_input_type ____________________

self = <tests.test_imapclient.TestRawCommand testMethod=test_invalid_input_type>

    def setUp(self):
>       super(TestRawCommand, self).setUp()

tests/test_imapclient.py:946: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9faa620>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
______________________ TestRawCommand.test_literal_at_end ______________________

self = <tests.test_imapclient.TestRawCommand testMethod=test_literal_at_end>

    def setUp(self):
>       super(TestRawCommand, self).setUp()

tests/test_imapclient.py:946: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9e6d4b0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_______________________ TestRawCommand.test_literal_plus _______________________

self = <tests.test_imapclient.TestRawCommand testMethod=test_literal_plus>

    def setUp(self):
>       super(TestRawCommand, self).setUp()

tests/test_imapclient.py:946: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9ed27a0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
______________ TestRawCommand.test_literal_plus_multiple_literals ______________

self = <tests.test_imapclient.TestRawCommand testMethod=test_literal_plus_multiple_literals>

    def setUp(self):
>       super(TestRawCommand, self).setUp()

tests/test_imapclient.py:946: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9eb68f0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
____________________ TestRawCommand.test_multiple_literals _____________________

self = <tests.test_imapclient.TestRawCommand testMethod=test_multiple_literals>

    def setUp(self):
>       super(TestRawCommand, self).setUp()

tests/test_imapclient.py:946: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fbdb40>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_________________________ TestRawCommand.test_not_uid __________________________

self = <tests.test_imapclient.TestRawCommand testMethod=test_not_uid>

    def setUp(self):
>       super(TestRawCommand, self).setUp()

tests/test_imapclient.py:946: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fcc5b0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
__________________________ TestRawCommand.test_plain ___________________________

self = <tests.test_imapclient.TestRawCommand testMethod=test_plain>

    def setUp(self):
>       super(TestRawCommand, self).setUp()

tests/test_imapclient.py:946: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9e72500>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________________ TestExpunge.test_expunge ___________________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fabdf0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_________________________ TestExpunge.test_id_expunge __________________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9f1f5e0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
__________________________ TestShutdown.test_shutdown __________________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9f0b220>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________ TestContextManager.test_context_manager ____________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fd7e50>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_____________ TestContextManager.test_context_manager_fail_closing _____________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fc5ea0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________ TestContextManager.test_exception_inside_context_manager ___________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fa4730>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________ TestProtocolError.test_tagged_response_with_parse_error ____________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9ee1150>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_________ TestSocket.test_issues_warning_for_deprecating_sock_property _________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba11d090>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
______________________________ TestInit.test_SSL _______________________________

self = <tests.test_init.TestInit testMethod=test_SSL>

    def test_SSL(self):
        fakeIMAP4_TLS = Mock()
        self.tls.IMAP4_TLS.return_value = fakeIMAP4_TLS
    
>       imap = IMAPClient(
            "1.2.3.4", ssl_context=sentinel.context, timeout=sentinel.timeout
        )

tests/test_init.py:58: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.imapclient.IMAPClient object at 0x731db9f3b130>
host = '1.2.3.4', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = sentinel.context
timeout = SocketTimeout(connect=sentinel.timeout, read=sentinel.timeout)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'IMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_______________________ TestInit.test_SSL_SocketTimeout ________________________

self = <tests.test_init.TestInit testMethod=test_SSL_SocketTimeout>

    def test_SSL_SocketTimeout(self):
        fakeIMAP4_TLS = Mock()
        self.tls.IMAP4_TLS.return_value = fakeIMAP4_TLS
    
>       imap = IMAPClient(
            "1.2.3.4",
            ssl_context=sentinel.context,
            timeout=SocketTimeout(sentinel.connect_timeout, sentinel.timeout),
        )

tests/test_init.py:76: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.imapclient.IMAPClient object at 0x731db9fd8c10>
host = '1.2.3.4', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = sentinel.context
timeout = SocketTimeout(connect=sentinel.connect_timeout, read=sentinel.timeout)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'IMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_____________________________ TestInit.test_plain ______________________________

self = <tests.test_init.TestInit testMethod=test_plain>

    def test_plain(self):
        fakeIMAP4 = Mock()
        self.imap4.IMAP4WithTimeout.return_value = fakeIMAP4
    
>       imap = IMAPClient("1.2.3.4", ssl=False, timeout=sentinel.timeout)

tests/test_init.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.imapclient.IMAPClient object at 0x731db9fb68c0>
host = '1.2.3.4', port = 143, use_uid = True, ssl = False, stream = False
ssl_context = None
timeout = SocketTimeout(connect=sentinel.timeout, read=sentinel.timeout)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'IMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
______________________ TestInit.test_plain_SocketTimeout _______________________

self = <tests.test_init.TestInit testMethod=test_plain_SocketTimeout>

    def test_plain_SocketTimeout(self):
        fakeIMAP4 = Mock()
        self.imap4.IMAP4WithTimeout.return_value = fakeIMAP4
    
>       imap = IMAPClient(
            "1.2.3.4",
            ssl=False,
            timeout=SocketTimeout(sentinel.connect_timeout, sentinel.timeout),
        )

tests/test_init.py:43: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.imapclient.IMAPClient object at 0x731db9efd690>
host = '1.2.3.4', port = 143, use_uid = True, ssl = False, stream = False
ssl_context = None
timeout = SocketTimeout(connect=sentinel.connect_timeout, read=sentinel.timeout)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'IMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_____________________________ TestInit.test_stream _____________________________

self = <tests.test_init.TestInit testMethod=test_stream>

    def test_stream(self):
        fakeIMAP4_stream = Mock()
        self.imaplib.IMAP4_stream.return_value = fakeIMAP4_stream
    
>       imap = IMAPClient("command", stream=True, ssl=False)

tests/test_init.py:91: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.imapclient.IMAPClient object at 0x731db9faea10>
host = 'command', port = None, use_uid = True, ssl = False, stream = True
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'IMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
________ TestParseFetchResponse.test_Address_str_ignores_encoding_error ________

self = <tests.test_response_parser.TestParseFetchResponse testMethod=test_Address_str_ignores_encoding_error>
mock_logger = <MagicMock name='logger' id='126571513388080'>

    @patch("imapclient.util.logger")
    def test_Address_str_ignores_encoding_error(self, mock_logger):
        self.assertEqual(
>           str(
                Address(
                    b"Russian \xc2\xeb\xe0\xe4\xe8\xec\xe8\xf0",
                    None,
                    b"g\xe9rard",
                    "domain.org",
                )
            ),
            "Russian  <grard@domain.org>",
        )

tests/test_response_parser.py:701: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
imapclient/response_types.py:94: in __str__
    return formataddr((to_unicode(self.name), address))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

pair = ('Russian Âëàäèìèð', 'gérard@domain.org'), charset = 'utf-8'

    def formataddr(pair, charset='utf-8'):
        """The inverse of parseaddr(), this takes a 2-tuple of the form
        (realname, email_address) and returns the string value suitable
        for an RFC 2822 From, To or Cc header.
    
        If the first element of pair is false, then the second element is
        returned unmodified.
    
        The optional charset is the character set that is used to encode
        realname in case realname is not ASCII safe.  Can be an instance of str or
        a Charset-like object which has a header_encode method.  Default is
        'utf-8'.
        """
        name, address = pair
        # The address MUST (per RFC) be ascii, so raise a UnicodeError if it isn't.
>       address.encode('ascii')
E       UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 1: ordinal not in range(128)

/usr/lib/python3.10/email/utils.py:92: UnicodeEncodeError
_______________________ TestParseFetchResponse.test_BODY _______________________

self = <tests.test_response_parser.TestParseFetchResponse testMethod=test_BODY>

    def test_BODY(self):
>       self.check_BODYish_single_part(b"BODY")

tests/test_response_parser.py:327: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_response_parser.py:342: in check_BODYish_single_part
    self.assertEqual(
E   AssertionError: defaultdict(<class 'dict'>, {317: {b'SEQ'[133 chars]')}}) != {317: {b'BODY': (b'TEXT', b'PLAIN', (b'CH[59 chars]123}}
__________________ TestParseFetchResponse.test_BODYSTRUCTURE ___________________

self = <tests.test_response_parser.TestParseFetchResponse testMethod=test_BODYSTRUCTURE>

    def test_BODYSTRUCTURE(self):
>       self.check_BODYish_single_part(b"BODYSTRUCTURE")

tests/test_response_parser.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_response_parser.py:342: in check_BODYish_single_part
    self.assertEqual(
E   AssertionError: defaultdict(<class 'dict'>, {317: {b'SEQ'[142 chars]')}}) != {317: {b'BODYSTRUCTURE': (b'TEXT', b'PLAI[68 chars]123}}
________________ TestParseFetchResponse.test_BODY_HEADER_FIELDS ________________

self = <tests.test_response_parser.TestParseFetchResponse testMethod=test_BODY_HEADER_FIELDS>

    def test_BODY_HEADER_FIELDS(self):
        header_text = b"Subject: A subject\r\nFrom: Some one <someone@mail.com>\r\n\r\n"
>       self.assertEqual(
            parse_fetch_response(
                [
                    (
                        b"123 (UID 31710 BODY[HEADER.FIELDS (from subject)] {57}",
                        header_text,
                    ),
                    b")",
                ]
            ),
            {31710: {b"BODY[HEADER.FIELDS (FROM SUBJECT)]": header_text, b"SEQ": 123}},
        )
E       AssertionError: defaultdict(<class 'dict'>, {31710: {b'SE[127 chars]n'}}) != {31710: {b'BODY[HEADER.FIELDS (FROM SUBJE[83 chars]123}}

tests/test_response_parser.py:313: AssertionError
_______________________ TestParseFetchResponse.test_UID ________________________

self = <tests.test_response_parser.TestParseFetchResponse testMethod=test_UID>

    def test_UID(self):
>       self.assertEqual(parse_fetch_response([b"23 (UID 76)"]), {76: {b"SEQ": 23}})
E       AssertionError: defaultdict(<class 'dict'>, {76: {b'SEQ': 23, b'UID': 76}}) != {76: {b'SEQ': 23}}

tests/test_response_parser.py:252: AssertionError
__________________ TestParseFetchResponse.test_partial_fetch ___________________

text = [(b'123 (UID 367 BODY[]<0> {20}', b'01234567890123456789'), b')']
normalise_times = True, uid_is_key = True

    def parse_fetch_response(text: List[bytes], normalise_times: bool=True, uid_is_key: bool=True) -> 'defaultdict[int, _ParseFetchResponseInnerDict]':
        """Pull apart IMAP FETCH responses as returned by imaplib.
    
        Returns a dictionary, keyed by message ID. Each value a dictionary
        keyed by FETCH field type (eg."RFC822").
        """
        result: defaultdict[int, _ParseFetchResponseInnerDict] = defaultdict(dict)
    
        if not text or text[0] is None:
            return result
    
        tokens = TokenSource(text)
        token_iter = TokenIterator(tokens)
    
        while True:
            try:
                msg_id_token = next(token_iter)
            except StopIteration:
                break
    
            if msg_id_token is None:
                continue
    
            try:
                msg_id = int(msg_id_token)
            except (ValueError, TypeError):
                raise ProtocolError(f"Bad message ID: {msg_id_token!r}")
    
            # Expect opening paren
            try:
                next_token = next(token_iter)
            except StopIteration:
                raise ProtocolError(f"Missing data for message {msg_id}")
    
            if next_token != b'(':
                raise ProtocolError(f"Bad data for message {msg_id}: {next_token!r}")
    
            # Parse the fetch data
            msg_data: _ParseFetchResponseInnerDict = {b'SEQ': msg_id}
    
            while True:
                try:
>                   key = next(token_iter)

imapclient/response_parser.py:202: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.response_parser.TokenIterator object at 0x731dba0c8610>

    def __next__(self) -> bytes:
        if self.pending_literal is not None:
            literal = self.pending_literal
            self.pending_literal = None
            return literal
    
>       token = next(self.iter)
E       StopIteration

imapclient/response_parser.py:37: StopIteration

During handling of the above exception, another exception occurred:

self = <tests.test_response_parser.TestParseFetchResponse testMethod=test_partial_fetch>

    def test_partial_fetch(self):
        body = b"01234567890123456789"
        self.assertEqual(
>           parse_fetch_response([(b"123 (UID 367 BODY[]<0> {20}", body), b")"]),
            {367: {b"BODY[]<0>": body, b"SEQ": 123}},
        )

tests/test_response_parser.py:492: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

text = [(b'123 (UID 367 BODY[]<0> {20}', b'01234567890123456789'), b')']
normalise_times = True, uid_is_key = True

    def parse_fetch_response(text: List[bytes], normalise_times: bool=True, uid_is_key: bool=True) -> 'defaultdict[int, _ParseFetchResponseInnerDict]':
        """Pull apart IMAP FETCH responses as returned by imaplib.
    
        Returns a dictionary, keyed by message ID. Each value a dictionary
        keyed by FETCH field type (eg."RFC822").
        """
        result: defaultdict[int, _ParseFetchResponseInnerDict] = defaultdict(dict)
    
        if not text or text[0] is None:
            return result
    
        tokens = TokenSource(text)
        token_iter = TokenIterator(tokens)
    
        while True:
            try:
                msg_id_token = next(token_iter)
            except StopIteration:
                break
    
            if msg_id_token is None:
                continue
    
            try:
                msg_id = int(msg_id_token)
            except (ValueError, TypeError):
                raise ProtocolError(f"Bad message ID: {msg_id_token!r}")
    
            # Expect opening paren
            try:
                next_token = next(token_iter)
            except StopIteration:
                raise ProtocolError(f"Missing data for message {msg_id}")
    
            if next_token != b'(':
                raise ProtocolError(f"Bad data for message {msg_id}: {next_token!r}")
    
            # Parse the fetch data
            msg_data: _ParseFetchResponseInnerDict = {b'SEQ': msg_id}
    
            while True:
                try:
                    key = next(token_iter)
                except StopIteration:
>                   raise ProtocolError("Tuple incomplete")
E                   imapclient.exceptions.ProtocolError: Tuple incomplete

imapclient/response_parser.py:204: ProtocolError
______ TestParseFetchResponse.test_same_message_appearing_multiple_times _______

self = <tests.test_response_parser.TestParseFetchResponse testMethod=test_same_message_appearing_multiple_times>

    def test_same_message_appearing_multiple_times(self):
        # This can occur when server sends unsolicited FETCH responses
        # (e.g. RFC 4551)
>       self.assertEqual(
            parse_fetch_response([b"2 (FLAGS (Foo Bar)) ", b"2 (MODSEQ 4)"]),
            {2: {b"FLAGS": (b"Foo", b"Bar"), b"SEQ": 2, b"MODSEQ": 4}},
        )
E       AssertionError: defaultdict(<class 'dict'>, {2: {b'SEQ': 2, b'MODSEQ': 4}}) != {2: {b'FLAGS': (b'Foo', b'Bar'), b'SEQ': 2, b'MODSEQ': 4}}

tests/test_response_parser.py:282: AssertionError
___________________ TestParseFetchResponse.test_simple_pairs ___________________

self = <tests.test_response_parser.TestParseFetchResponse testMethod=test_simple_pairs>

    def test_simple_pairs(self):
>       self.assertEqual(
            parse_fetch_response([b'23 (ABC 123 StUfF "hello")']),
            {23: {b"ABC": 123, b"STUFF": b"hello", b"SEQ": 23}},
        )
E       AssertionError: defaultdict(<class 'dict'>, {23: {b'SEQ': 23, b'ABC': 123, b'StUfF': b'hello'}}) != {23: {b'ABC': 123, b'STUFF': b'hello', b'SEQ': 23}}

tests/test_response_parser.py:242: AssertionError
________________________ TestSearch.test_bytes_criteria ________________________

self = <tests.test_search.TestSearch testMethod=test_bytes_criteria>

    def setUp(self):
>       super(TestSearchBase, self).setUp()

tests/test_search.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0bebf0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_________________ TestSearch.test_bytes_criteria_with_charset __________________

self = <tests.test_search.TestSearch testMethod=test_bytes_criteria_with_charset>

    def setUp(self):
>       super(TestSearchBase, self).setUp()

tests/test_search.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fa86d0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
____________________________ TestSearch.test_modseq ____________________________

self = <tests.test_search.TestSearch testMethod=test_modseq>

    def setUp(self):
>       super(TestSearchBase, self).setUp()

tests/test_search.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0c87f0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
____________________________ TestSearch.test_nested ____________________________

self = <tests.test_search.TestSearch testMethod=test_nested>

    def setUp(self):
>       super(TestSearchBase, self).setUp()

tests/test_search.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fcdf30>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_________________________ TestSearch.test_nested_empty _________________________

self = <tests.test_search.TestSearch testMethod=test_nested_empty>

    def setUp(self):
>       super(TestSearchBase, self).setUp()

tests/test_search.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9effaf0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_______________________ TestSearch.test_nested_multiple ________________________

self = <tests.test_search.TestSearch testMethod=test_nested_multiple>

    def setUp(self):
>       super(TestSearchBase, self).setUp()

tests/test_search.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0bce50>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_________________________ TestSearch.test_nested_tuple _________________________

self = <tests.test_search.TestSearch testMethod=test_nested_tuple>

    def setUp(self):
>       super(TestSearchBase, self).setUp()

tests/test_search.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9f1d2d0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
__________________________ TestSearch.test_no_results __________________________

self = <tests.test_search.TestSearch testMethod=test_no_results>

    def setUp(self):
>       super(TestSearchBase, self).setUp()

tests/test_search.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9d29420>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________________ TestSearch.test_quoting ____________________________

self = <tests.test_search.TestSearch testMethod=test_quoting>

    def setUp(self):
>       super(TestSearchBase, self).setUp()

tests/test_search.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9e70f40>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
__________ TestSearch.test_search_custom_exception_with_invalid_list ___________

self = <tests.test_search.TestSearch testMethod=test_search_custom_exception_with_invalid_list>

    def setUp(self):
>       super(TestSearchBase, self).setUp()

tests/test_search.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9efc5e0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
__________ TestSearch.test_search_custom_exception_with_invalid_text ___________

self = <tests.test_search.TestSearch testMethod=test_search_custom_exception_with_invalid_text>

    def setUp(self):
>       super(TestSearchBase, self).setUp()

tests/test_search.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fd5d80>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
____________________________ TestSearch.test_single ____________________________

self = <tests.test_search.TestSearch testMethod=test_single>

    def setUp(self):
>       super(TestSearchBase, self).setUp()

tests/test_search.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9d2e560>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_______________________ TestSearch.test_unicode_criteria _______________________

self = <tests.test_search.TestSearch testMethod=test_unicode_criteria>

    def setUp(self):
>       super(TestSearchBase, self).setUp()

tests/test_search.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9e73b50>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
________________ TestSearch.test_unicode_criteria_with_charset _________________

self = <tests.test_search.TestSearch testMethod=test_unicode_criteria_with_charset>

    def setUp(self):
>       super(TestSearchBase, self).setUp()

tests/test_search.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9faaaa0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
__________________________ TestSearch.test_with_date ___________________________

self = <tests.test_search.TestSearch testMethod=test_with_date>

    def setUp(self):
>       super(TestSearchBase, self).setUp()

tests/test_search.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fd7eb0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
________________________ TestSearch.test_with_datetime _________________________

self = <tests.test_search.TestSearch testMethod=test_with_datetime>

    def setUp(self):
>       super(TestSearchBase, self).setUp()

tests/test_search.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fa6230>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_____________________ TestSearch.test_zero_length_quoting ______________________

self = <tests.test_search.TestSearch testMethod=test_zero_length_quoting>

    def setUp(self):
>       super(TestSearchBase, self).setUp()

tests/test_search.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9e73430>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_______________________ TestGmailSearch.test_bytes_query _______________________

self = <tests.test_search.TestGmailSearch testMethod=test_bytes_query>

    def setUp(self):
>       super(TestGmailSearch, self).setUp()

tests/test_search.py:144: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_search.py:17: in setUp
    super(TestSearchBase, self).setUp()
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9faa620>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
________________ TestGmailSearch.test_bytes_query_with_charset _________________

self = <tests.test_search.TestGmailSearch testMethod=test_bytes_query_with_charset>

    def setUp(self):
>       super(TestGmailSearch, self).setUp()

tests/test_search.py:144: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_search.py:17: in setUp
    super(TestSearchBase, self).setUp()
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fc52d0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
______________ TestGmailSearch.test_unicode_criteria_with_charset ______________

self = <tests.test_search.TestGmailSearch testMethod=test_unicode_criteria_with_charset>

    def setUp(self):
>       super(TestGmailSearch, self).setUp()

tests/test_search.py:144: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_search.py:17: in setUp
    super(TestSearchBase, self).setUp()
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9d5ada0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
____________________________ TestSort.test_all_args ____________________________

self = <tests.test_sort.TestSort testMethod=test_all_args>

    def setUp(self):
>       super(TestSort, self).setUp()

tests/test_sort.py:14: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba07ac50>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_______________________ TestSort.test_multiple_criteria ________________________

self = <tests.test_sort.TestSort testMethod=test_multiple_criteria>

    def setUp(self):
>       super(TestSort, self).setUp()

tests/test_sort.py:14: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fcfee0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________________ TestSort.test_no_support ___________________________

self = <tests.test_sort.TestSort testMethod=test_no_support>

    def setUp(self):
>       super(TestSort, self).setUp()

tests/test_sort.py:14: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9e71b40>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
________________________ TestSort.test_single_criteria _________________________

self = <tests.test_sort.TestSort testMethod=test_single_criteria>

    def setUp(self):
>       super(TestSort, self).setUp()

tests/test_sort.py:14: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fcd720>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_______________________ TestStarttls.test_command_fails ________________________

self = <tests.test_starttls.TestStarttls testMethod=test_command_fails>

    def setUp(self):
>       super(TestStarttls, self).setUp()

tests/test_starttls.py:15: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9ee2f50>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________ TestStarttls.test_fails_if_called_twice ____________________

self = <tests.test_starttls.TestStarttls testMethod=test_fails_if_called_twice>

    def setUp(self):
>       super(TestStarttls, self).setUp()

tests/test_starttls.py:15: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fcdab0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_____________________ TestStarttls.test_fails_if_ssl_true ______________________

self = <tests.test_starttls.TestStarttls testMethod=test_fails_if_ssl_true>

    def setUp(self):
>       super(TestStarttls, self).setUp()

tests/test_starttls.py:15: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9ee3a90>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________________ TestStarttls.test_works ____________________________

self = <tests.test_starttls.TestStarttls testMethod=test_works>

    def setUp(self):
>       super(TestStarttls, self).setUp()

tests/test_starttls.py:15: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fcca90>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_____________________ TestFlagsConsts.test_flags_are_bytes _____________________
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba0bd270>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
______________________________ TestFlags.test_add ______________________________

self = <tests.test_store.TestFlags testMethod=test_add>

    def setUp(self):
>       super(TestFlags, self).setUp()

tests/test_store.py:22: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9efdb10>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
______________________________ TestFlags.test_get ______________________________

self = <tests.test_store.TestFlags testMethod=test_get>

    def setUp(self):
>       super(TestFlags, self).setUp()

tests/test_store.py:22: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9d591e0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
____________________________ TestFlags.test_remove _____________________________

self = <tests.test_store.TestFlags testMethod=test_remove>

    def setUp(self):
>       super(TestFlags, self).setUp()

tests/test_store.py:22: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9ef6fb0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
______________________________ TestFlags.test_set ______________________________

self = <tests.test_store.TestFlags testMethod=test_set>

    def setUp(self):
>       super(TestFlags, self).setUp()

tests/test_store.py:22: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9f1e710>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________________ TestGmailLabels.test_add ___________________________

self = <tests.test_store.TestGmailLabels testMethod=test_add>

    def setUp(self):
>       super(TestGmailLabels, self).setUp()

tests/test_store.py:78: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9efff10>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________________ TestGmailLabels.test_get ___________________________

self = <tests.test_store.TestGmailLabels testMethod=test_get>

    def setUp(self):
>       super(TestGmailLabels, self).setUp()

tests/test_store.py:78: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9d5b910>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
_________________________ TestGmailLabels.test_remove __________________________

self = <tests.test_store.TestGmailLabels testMethod=test_remove>

    def setUp(self):
>       super(TestGmailLabels, self).setUp()

tests/test_store.py:78: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9f3bb80>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________________ TestGmailLabels.test_set ___________________________

self = <tests.test_store.TestGmailLabels testMethod=test_set>

    def setUp(self):
>       super(TestGmailLabels, self).setUp()

tests/test_store.py:78: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba078f40>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________________ TestThread.test_all_args ___________________________

self = <tests.test_thread.TestThread testMethod=test_all_args>

    def setUp(self):
>       super(TestThread, self).setUp()

tests/test_thread.py:14: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9fa5d50>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
___________________________ TestThread.test_defaults ___________________________

self = <tests.test_thread.TestThread testMethod=test_defaults>

    def setUp(self):
>       super(TestThread, self).setUp()

tests/test_thread.py:14: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731dba079db0>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
______________________ TestThread.test_no_thread_support _______________________

self = <tests.test_thread.TestThread testMethod=test_no_thread_support>

    def setUp(self):
>       super(TestThread, self).setUp()

tests/test_thread.py:14: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9d2c550>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
____________________ TestThread.test_unsupported_algorithm _____________________

self = <tests.test_thread.TestThread testMethod=test_unsupported_algorithm>

    def setUp(self):
>       super(TestThread, self).setUp()

tests/test_thread.py:14: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/imapclient_test.py:8: in setUp
    self.client = IMAPClient()
imapclient/testable_imapclient.py:15: in __init__
    super().__init__('somehost')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x731db9f1d090>
host = 'somehost', port = 993, use_uid = True, ssl = True, stream = False
ssl_context = None, timeout = SocketTimeout(connect=None, read=None)

    def __init__(self, host: str, port: int=None, use_uid: bool=True, ssl: bool=True, stream: bool=False, ssl_context: Optional[ssl_lib.SSLContext]=None, timeout: Optional[float]=None):
        if stream:
            if port is not None:
                raise ValueError("can't set 'port' when 'stream' True")
            if ssl:
                raise ValueError("can't use 'ssl' when 'stream' is True")
        elif port is None:
            port = ssl and 993 or 143
        if ssl and port == 143:
            logger.warning('Attempting to establish an encrypted connection to a port (143) often used for unencrypted connections')
        self.host = host
        self.port = port
        self.ssl = ssl
        self.ssl_context = ssl_context
        self.stream = stream
        self.use_uid = use_uid
        self.folder_encode = True
        self.normalise_times = True
        if not isinstance(timeout, SocketTimeout):
            timeout = SocketTimeout(timeout, timeout)
        self._timeout = timeout
        self._starttls_done = False
        self._cached_capabilities = None
        self._idle_tag = None
>       self._imap = self._create_IMAP4()
E       AttributeError: 'TestableIMAPClient' object has no attribute '_create_IMAP4'

imapclient/imapclient.py:191: AttributeError
--------------------------------- JSON report ----------------------------------
report saved to: report.json
=========================== short test summary info ============================
FAILED tests/test_auth.py::TestPlainLogin::test_fail - AttributeError: 'Testa...
FAILED tests/test_auth.py::TestPlainLogin::test_simple - AttributeError: 'Tes...
FAILED tests/test_auth.py::TestPlainLogin::test_with_authorization_identity
FAILED tests/test_enable.py::TestEnable::test_failed1 - AttributeError: 'Test...
FAILED tests/test_enable.py::TestEnable::test_failed2 - AttributeError: 'Test...
FAILED tests/test_enable.py::TestEnable::test_multiple - AttributeError: 'Tes...
FAILED tests/test_enable.py::TestEnable::test_success - AttributeError: 'Test...
FAILED tests/test_enable.py::TestEnable::test_wrong_state - AttributeError: '...
FAILED tests/test_folder_status.py::TestFolderStatus::test_basic - AttributeE...
FAILED tests/test_folder_status.py::TestFolderStatus::test_extra_response - A...
FAILED tests/test_folder_status.py::TestFolderStatus::test_literal - Attribut...
FAILED tests/test_imapclient.py::TestListFolders::test_blanks - AttributeErro...
FAILED tests/test_imapclient.py::TestListFolders::test_empty_response - Attri...
FAILED tests/test_imapclient.py::TestListFolders::test_folder_encode_off - At...
FAILED tests/test_imapclient.py::TestListFolders::test_funky_characters - Att...
FAILED tests/test_imapclient.py::TestListFolders::test_list_folders - Attribu...
FAILED tests/test_imapclient.py::TestListFolders::test_list_folders_NO - Attr...
FAILED tests/test_imapclient.py::TestListFolders::test_list_sub_folders - Att...
FAILED tests/test_imapclient.py::TestListFolders::test_list_sub_folders_NO - ...
FAILED tests/test_imapclient.py::TestListFolders::test_mixed - AttributeError...
FAILED tests/test_imapclient.py::TestListFolders::test_quoted_specials - Attr...
FAILED tests/test_imapclient.py::TestListFolders::test_simple - AttributeErro...
FAILED tests/test_imapclient.py::TestListFolders::test_unquoted_numeric_folder_name
FAILED tests/test_imapclient.py::TestListFolders::test_unquoted_numeric_folder_name_parsed_as_long
FAILED tests/test_imapclient.py::TestListFolders::test_utf7_decoding - Attrib...
FAILED tests/test_imapclient.py::TestListFolders::test_without_quotes - Attri...
FAILED tests/test_imapclient.py::TestFindSpecialFolder::test_find_special_folder_with_special_use
FAILED tests/test_imapclient.py::TestFindSpecialFolder::test_find_special_folder_with_special_use_single_flag
FAILED tests/test_imapclient.py::TestFindSpecialFolder::test_find_special_folder_without_special_use_nor_namespace
FAILED tests/test_imapclient.py::TestSelectFolder::test_normal - AttributeErr...
FAILED tests/test_imapclient.py::TestSelectFolder::test_unselect - AttributeE...
FAILED tests/test_imapclient.py::TestAppend::test_multiappend - AttributeErro...
FAILED tests/test_imapclient.py::TestAppend::test_multiappend_with_flags_and_internaldate
FAILED tests/test_imapclient.py::TestAppend::test_with_msg_time - AttributeEr...
FAILED tests/test_imapclient.py::TestAppend::test_without_msg_time - Attribut...
FAILED tests/test_imapclient.py::TestAclMethods::test_getacl - AttributeError...
FAILED tests/test_imapclient.py::TestAclMethods::test_setacl - AttributeError...
FAILED tests/test_imapclient.py::TestQuota::test__get_quota - AttributeError:...
FAILED tests/test_imapclient.py::TestQuota::test_get_quota_root - AttributeEr...
FAILED tests/test_imapclient.py::TestQuota::test_parse_quota - AttributeError...
FAILED tests/test_imapclient.py::TestQuota::test_set_quota - AttributeError: ...
FAILED tests/test_imapclient.py::TestIdleAndNoop::test_consume_until_tagged_response
FAILED tests/test_imapclient.py::TestIdleAndNoop::test_idle - AttributeError:...
FAILED tests/test_imapclient.py::TestIdleAndNoop::test_idle_check_blocking - ...
FAILED tests/test_imapclient.py::TestIdleAndNoop::test_idle_check_blocking_poll
FAILED tests/test_imapclient.py::TestIdleAndNoop::test_idle_check_timeout - A...
FAILED tests/test_imapclient.py::TestIdleAndNoop::test_idle_check_timeout_poll
FAILED tests/test_imapclient.py::TestIdleAndNoop::test_idle_check_with_data
FAILED tests/test_imapclient.py::TestIdleAndNoop::test_idle_check_with_data_poll
FAILED tests/test_imapclient.py::TestIdleAndNoop::test_idle_done - AttributeE...
FAILED tests/test_imapclient.py::TestIdleAndNoop::test_noop - AttributeError:...
FAILED tests/test_imapclient.py::TestDebugLogging::test_IMAP_is_patched - Att...
FAILED tests/test_imapclient.py::TestDebugLogging::test_redacted_password - A...
FAILED tests/test_imapclient.py::TestTimeNormalisation::test_default - Attrib...
FAILED tests/test_imapclient.py::TestTimeNormalisation::test_pass_through - A...
FAILED tests/test_imapclient.py::TestNamespace::test_complex - AttributeError...
FAILED tests/test_imapclient.py::TestNamespace::test_folder_decoding - Attrib...
FAILED tests/test_imapclient.py::TestNamespace::test_other_only - AttributeEr...
FAILED tests/test_imapclient.py::TestNamespace::test_simple - AttributeError:...
FAILED tests/test_imapclient.py::TestNamespace::test_without_folder_decoding
FAILED tests/test_imapclient.py::TestCapabilities::test_caching - AttributeEr...
FAILED tests/test_imapclient.py::TestCapabilities::test_decorator - Attribute...
FAILED tests/test_imapclient.py::TestCapabilities::test_has_capability - Attr...
FAILED tests/test_imapclient.py::TestCapabilities::test_post_auth_request - A...
FAILED tests/test_imapclient.py::TestCapabilities::test_preauth - AttributeEr...
FAILED tests/test_imapclient.py::TestCapabilities::test_server_returned_capability_after_auth
FAILED tests/test_imapclient.py::TestCapabilities::test_with_starttls - Attri...
FAILED tests/test_imapclient.py::TestId::test_id - AttributeError: 'TestableI...
FAILED tests/test_imapclient.py::TestId::test_invalid_parameters - AttributeE...
FAILED tests/test_imapclient.py::TestId::test_no_support - AttributeError: 'T...
FAILED tests/test_imapclient.py::TestRawCommand::test_complex - AttributeErro...
FAILED tests/test_imapclient.py::TestRawCommand::test_embedded_literal - Attr...
FAILED tests/test_imapclient.py::TestRawCommand::test_failed_continuation_wait
FAILED tests/test_imapclient.py::TestRawCommand::test_invalid_input_type - At...
FAILED tests/test_imapclient.py::TestRawCommand::test_literal_at_end - Attrib...
FAILED tests/test_imapclient.py::TestRawCommand::test_literal_plus - Attribut...
FAILED tests/test_imapclient.py::TestRawCommand::test_literal_plus_multiple_literals
FAILED tests/test_imapclient.py::TestRawCommand::test_multiple_literals - Att...
FAILED tests/test_imapclient.py::TestRawCommand::test_not_uid - AttributeErro...
FAILED tests/test_imapclient.py::TestRawCommand::test_plain - AttributeError:...
FAILED tests/test_imapclient.py::TestExpunge::test_expunge - AttributeError: ...
FAILED tests/test_imapclient.py::TestExpunge::test_id_expunge - AttributeErro...
FAILED tests/test_imapclient.py::TestShutdown::test_shutdown - AttributeError...
FAILED tests/test_imapclient.py::TestContextManager::test_context_manager - A...
FAILED tests/test_imapclient.py::TestContextManager::test_context_manager_fail_closing
FAILED tests/test_imapclient.py::TestContextManager::test_exception_inside_context_manager
FAILED tests/test_imapclient.py::TestProtocolError::test_tagged_response_with_parse_error
FAILED tests/test_imapclient.py::TestSocket::test_issues_warning_for_deprecating_sock_property
FAILED tests/test_init.py::TestInit::test_SSL - AttributeError: 'IMAPClient' ...
FAILED tests/test_init.py::TestInit::test_SSL_SocketTimeout - AttributeError:...
FAILED tests/test_init.py::TestInit::test_plain - AttributeError: 'IMAPClient...
FAILED tests/test_init.py::TestInit::test_plain_SocketTimeout - AttributeErro...
FAILED tests/test_init.py::TestInit::test_stream - AttributeError: 'IMAPClien...
FAILED tests/test_response_parser.py::TestParseFetchResponse::test_Address_str_ignores_encoding_error
FAILED tests/test_response_parser.py::TestParseFetchResponse::test_BODY - Ass...
FAILED tests/test_response_parser.py::TestParseFetchResponse::test_BODYSTRUCTURE
FAILED tests/test_response_parser.py::TestParseFetchResponse::test_BODY_HEADER_FIELDS
FAILED tests/test_response_parser.py::TestParseFetchResponse::test_UID - Asse...
FAILED tests/test_response_parser.py::TestParseFetchResponse::test_partial_fetch
FAILED tests/test_response_parser.py::TestParseFetchResponse::test_same_message_appearing_multiple_times
FAILED tests/test_response_parser.py::TestParseFetchResponse::test_simple_pairs
FAILED tests/test_search.py::TestSearch::test_bytes_criteria - AttributeError...
FAILED tests/test_search.py::TestSearch::test_bytes_criteria_with_charset - A...
FAILED tests/test_search.py::TestSearch::test_modseq - AttributeError: 'Testa...
FAILED tests/test_search.py::TestSearch::test_nested - AttributeError: 'Testa...
FAILED tests/test_search.py::TestSearch::test_nested_empty - AttributeError: ...
FAILED tests/test_search.py::TestSearch::test_nested_multiple - AttributeErro...
FAILED tests/test_search.py::TestSearch::test_nested_tuple - AttributeError: ...
FAILED tests/test_search.py::TestSearch::test_no_results - AttributeError: 'T...
FAILED tests/test_search.py::TestSearch::test_quoting - AttributeError: 'Test...
FAILED tests/test_search.py::TestSearch::test_search_custom_exception_with_invalid_list
FAILED tests/test_search.py::TestSearch::test_search_custom_exception_with_invalid_text
FAILED tests/test_search.py::TestSearch::test_single - AttributeError: 'Testa...
FAILED tests/test_search.py::TestSearch::test_unicode_criteria - AttributeErr...
FAILED tests/test_search.py::TestSearch::test_unicode_criteria_with_charset
FAILED tests/test_search.py::TestSearch::test_with_date - AttributeError: 'Te...
FAILED tests/test_search.py::TestSearch::test_with_datetime - AttributeError:...
FAILED tests/test_search.py::TestSearch::test_zero_length_quoting - Attribute...
FAILED tests/test_search.py::TestGmailSearch::test_bytes_query - AttributeErr...
FAILED tests/test_search.py::TestGmailSearch::test_bytes_query_with_charset
FAILED tests/test_search.py::TestGmailSearch::test_unicode_criteria_with_charset
FAILED tests/test_sort.py::TestSort::test_all_args - AttributeError: 'Testabl...
FAILED tests/test_sort.py::TestSort::test_multiple_criteria - AttributeError:...
FAILED tests/test_sort.py::TestSort::test_no_support - AttributeError: 'Testa...
FAILED tests/test_sort.py::TestSort::test_single_criteria - AttributeError: '...
FAILED tests/test_starttls.py::TestStarttls::test_command_fails - AttributeEr...
FAILED tests/test_starttls.py::TestStarttls::test_fails_if_called_twice - Att...
FAILED tests/test_starttls.py::TestStarttls::test_fails_if_ssl_true - Attribu...
FAILED tests/test_starttls.py::TestStarttls::test_works - AttributeError: 'Te...
FAILED tests/test_store.py::TestFlagsConsts::test_flags_are_bytes - Attribute...
FAILED tests/test_store.py::TestFlags::test_add - AttributeError: 'TestableIM...
FAILED tests/test_store.py::TestFlags::test_get - AttributeError: 'TestableIM...
FAILED tests/test_store.py::TestFlags::test_remove - AttributeError: 'Testabl...
FAILED tests/test_store.py::TestFlags::test_set - AttributeError: 'TestableIM...
FAILED tests/test_store.py::TestGmailLabels::test_add - AttributeError: 'Test...
FAILED tests/test_store.py::TestGmailLabels::test_get - AttributeError: 'Test...
FAILED tests/test_store.py::TestGmailLabels::test_remove - AttributeError: 'T...
FAILED tests/test_store.py::TestGmailLabels::test_set - AttributeError: 'Test...
FAILED tests/test_thread.py::TestThread::test_all_args - AttributeError: 'Tes...
FAILED tests/test_thread.py::TestThread::test_defaults - AttributeError: 'Tes...
FAILED tests/test_thread.py::TestThread::test_no_thread_support - AttributeEr...
FAILED tests/test_thread.py::TestThread::test_unsupported_algorithm - Attribu...
======================= 142 failed, 125 passed in 2.14s ========================