............................F.FF....FFFFFFFFFF.........F.............F..FFFFF.....FF..........................................................................................................................F............................................................                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [100%]
=============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================== FAILURES ===============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ TestListFolders.test_blanks ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

self = <tests.test_imapclient.TestListFolders testMethod=test_blanks>

    def test_blanks(self):
>       folders = self.client._proc_folder_list(
            ["", None, rb'(\HasNoChildren) "/" "last"']
        )

tests/test_imapclient.py:229:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x7dfcd6007550>, folder_data = ['', None, b'(\\HasNoChildren) "/" "last"']

    def _proc_folder_list(self, folder_data):
        folders = []
        for item in folder_data:
            if not item: continue
>           flags, delim, name = parse_response([item])[0]
E           ValueError: not enough values to unpack (expected 3, got 1)

imapclient/imapclient.py:221: ValueError
________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ TestListFolders.test_folder_encode_off ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

self = <tests.test_imapclient.TestListFolders testMethod=test_folder_encode_off>

    def test_folder_encode_off(self):
        self.client.folder_encode = False
        self.client._imap._simple_command.return_value = ("OK", [b"something"])
        self.client._imap._untagged_response.return_value = (
            "LIST",
            [
                b'(\\HasNoChildren) "/" "A"',
                b'(\\HasNoChildren) "/" "Hello&AP8-world"',
            ],
        )

>       folders = self.client.list_folders("foo", "bar")

tests/test_imapclient.py:109:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
imapclient/imapclient.py:211: in list_folders
    return self._do_list('LIST', directory, pattern)
imapclient/imapclient.py:209: in _do_list
    return self._proc_folder_list(folder_data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _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', b'(\\HasNoChildren) "/" "Hello&AP8-world"']

    def _proc_folder_list(self, folder_data):
        folders = []
        for item in folder_data:
            if not item: continue
>           flags, delim, name = parse_response([item])[0]
E           ValueError: not enough values to unpack (expected 3, got 1)

imapclient/imapclient.py:221: ValueError
________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ TestListFolders.test_funky_characters _________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

self = <tests.test_imapclient.TestListFolders testMethod=test_funky_characters>

    def test_funky_characters(self):
>       folders = self.client._proc_folder_list(
            [
                (b'(\\NoInferiors \\UnMarked) "/" {5}', "bang\xff"),
                b"",
                b'(\\HasNoChildren \\UnMarked) "/" "INBOX"',
            ]
        )

tests/test_imapclient.py:189:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <imapclient.testable_imapclient.TestableIMAPClient object at 0x7dfcd60b7430>, folder_data = [(b'(\\NoInferiors \\UnMarked) "/" {5}', 'bangÿ'), b'', b'(\\HasNoChildren \\UnMarked) "/" "INBOX"']

    def _proc_folder_list(self, folder_data):
        folders = []
        for item in folder_data:
            if not item: continue
>           flags, delim, name = parse_response([item])[0]
E           ValueError: not enough values to unpack (expected 3, got 2)

imapclient/imapclient.py:221: ValueError
______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ TestListFolders.test_mixed ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

self = <tests.test_imapclient.TestListFolders testMethod=test_mixed>

    def test_mixed(self):
>       folders = self.client._proc_folder_list(
            [
                b'(\\HasNoChildren) "/" Alpha',
                b'(\\HasNoChildren) "/" "Foo Bar"',
                b'(\\HasNoChildren) "/" C',
            ]
        )

tests/test_imapclient.py:172:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _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def _proc_folder_list(self, folder_data):
        folders = []
        for item in folder_data:
            if not item: continue
>           flags, delim, name = parse_response([item])[0]
E           ValueError: not enough values to unpack (expected 3, got 1)

imapclient/imapclient.py:221: ValueError
___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________<response clipped><NOTE>Due to the max output limit, only part of the full response has been shown to you.</NOTE>f.set_return(b'(("&AP8-." "/")) NIL NIL')
        self.client.folder_encode = False
>       self.assertEqual(self.client.namespace(), (((b"&AP8-.", "/"),), None, None))

tests/test_imapclient.py:813:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
imapclient/imapclient.py:64: in wrapper
    return func(self, *args, **kwargs)
imapclient/imapclient.py:200: in namespace
    return Namespace(convert(ns[0]), convert(ns[1]), convert(ns[2]))
imapclient/imapclient.py:199: in convert
    return tuple(((decode_utf7(p) if self.folder_encode else p), to_unicode(d)) for p, d in part)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

.0 = <tuple_iterator object at 0x7dfcd5f7f8b0>

>   return tuple(((decode_utf7(p) if self.folder_encode else p), to_unicode(d)) for p, d in part)
E   ValueError: too many values to unpack (expected 2)

imapclient/imapclient.py:199: ValueError
_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ TestCapabilities.test_server_returned_capability_after_auth ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

self = <tests.test_imapclient.TestCapabilities testMethod=test_server_returned_capability_after_auth>

    def test_server_returned_capability_after_auth(self):
        self.client._imap.capabilities = (b"FOO",)
        self.client._imap.untagged_responses = {"CAPABILITY": [b"FOO MORE"]}

        self.assertEqual(self.client._cached_capabilities, None)
        self.assertEqual(self.client.capabilities(), (b"FOO", b"MORE"))
>       self.assertEqual(self.client._cached_capabilities, (b"FOO", b"MORE"))
E       AssertionError: None != (b'FOO', b'MORE')

tests/test_imapclient.py:848: AssertionError
_________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ TestCapabilities.test_with_starttls __________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

self = <tests.test_imapclient.TestCapabilities testMethod=test_with_starttls>

    def test_with_starttls(self):
        # Initial connection
        self.client._imap.capabilities = ("FOO",)
        self.client._imap.untagged_responses = {}
        self.client._imap.state = "NONAUTH"
        self.assertEqual(self.client.capabilities(), (b"FOO",))

        # Now do STARTTLS; capabilities change and should be reported.
        self.client._starttls_done = True
        self.client._imap.capability.return_value = ("OK", [b"FOO BAR"])
        self.assertEqual(self.client.capabilities(), (b"FOO", b"BAR"))

        # Login done; capabilities change again.
        self.client._imap.state = "AUTH"
        self.client._imap.capability.return_value = ("OK", [b"FOO BAR QUX"])
>       self.assertEqual(self.client.capabilities(), (b"FOO", b"BAR", b"QUX"))
E       AssertionError: Tuples differ: (b'FOO', b'BAR') != (b'FOO', b'BAR', b'QUX')
E
E       Second tuple contains 1 additional elements.
E       First extra element 2:
E       b'QUX'
E
E       - (b'FOO', b'BAR')
E       + (b'FOO', b'BAR', b'QUX')
E       ?                ++++++++

tests/test_imapclient.py:882: AssertionError
_______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ TestStarttls.test_fails_if_called_twice ________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

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

    def test_fails_if_called_twice(self):
        self.client.starttls(sentinel.ssl_context)
>       self.assert_tls_already_established()

tests/test_starttls.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_starttls.py:64: in assert_tls_already_established
    self.client.starttls(sentinel.ssl_context)
imapclient/imapclient.py:62: in wrapper
    if not self.has_capability(capability):
imapclient/imapclient.py:192: in has_capability
    wanted = to_bytes(capability).upper(); return wanted in tuple(c.upper() for c in self.capabilities())
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    def capabilities(self):
        if self._cached_capabilities is not None:
            return self._cached_capabilities
        untagged = getattr(self._imap, 'untagged_responses', {})
        if 'CAPABILITY' in untagged or b'CAPABILITY' in untagged:
            raw = untagged.pop('CAPABILITY', untagged.pop(b'CAPABILITY', []))
            caps = tuple(to_bytes(c) for c in b' '.join(to_bytes(x) for x in raw).split())
        elif getattr(self._imap, 'state', None) in ('AUTH', 'SELECTED') or self._starttls_done:
>           typ, data = self._imap.capability(); self._check_resp('OK', 'capability', typ, data)
E           TypeError: cannot unpack non-iterable MockIMAP4 object

imapclient/imapclient.py:184: TypeError
======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================= short test summary info ========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
FAILED tests/test_imapclient.py::TestListFolders::test_blanks - ValueError: not enough values to unpack (expected 3, got 1)
FAILED tests/test_imapclient.py::TestListFolders::test_folder_encode_off - ValueError: not enough values to unpack (expected 3, got 1)
FAILED tests/test_imapclient.py::TestListFolders::test_funky_characters - ValueError: not enough values to unpack (expected 3, got 2)
FAILED tests/test_imapclient.py::TestListFolders::test_mixed - ValueError: not enough values to unpack (expected 3, got 1)
FAILED tests/test_imapclient.py::TestListFolders::test_quoted_specials - ValueError: not enough values to unpack (expected 3, got 1)
FAILED tests/test_imapclient.py::TestListFolders::test_simple - ValueError: not enough values to unpack (expected 3, got 1)
FAILED tests/test_imapclient.py::TestListFolders::test_unquoted_numeric_folder_name - ValueError: not enough values to unpack (expected 3, got 1)
FAILED tests/test_imapclient.py::TestListFolders::test_unquoted_numeric_folder_name_parsed_as_long - ValueError: not enough values to unpack (expected 3, got 1)
FAILED tests/test_imapclient.py::TestListFolders::test_utf7_decoding - ValueError: not enough values to unpack (expected 3, got 1)
FAILED tests/test_imapclient.py::TestListFolders::test_without_quotes - ValueError: not enough values to unpack (expected 3, got 1)
FAILED tests/test_imapclient.py::TestFindSpecialFolder::test_find_special_folder_with_special_use - AssertionError: None != 'Sent'
FAILED tests/test_imapclient.py::TestFindSpecialFolder::test_find_special_folder_with_special_use_single_flag - AssertionError: None != 'Sent'
FAILED tests/test_imapclient.py::TestFindSpecialFolder::test_find_special_folder_without_special_use_nor_namespace - AssertionError: None != 'Sent Items'
FAILED tests/test_imapclient.py::TestQuota::test_get_quota_root - TypeError: cannot unpack non-iterable MockIMAP4 object
FAILED tests/test_imapclient.py::TestDebugLogging::test_redacted_password - AssertionError: expected call not found.
FAILED tests/test_imapclient.py::TestNamespace::test_complex - ValueError: not enough values to unpack (expected 2, got 0)
FAILED tests/test_imapclient.py::TestNamespace::test_folder_decoding - ValueError: too many values to unpack (expected 2)
FAILED tests/test_imapclient.py::TestNamespace::test_other_only - TypeError: 'NoneType' object is not subscriptable
FAILED tests/test_imapclient.py::TestNamespace::test_simple - ValueError: too many values to unpack (expected 2)
FAILED tests/test_imapclient.py::TestNamespace::test_without_folder_decoding - ValueError: too many values to unpack (expected 2)
FAILED tests/test_imapclient.py::TestCapabilities::test_server_returned_capability_after_auth - AssertionError: None != (b'FOO', b'MORE')
FAILED tests/test_imapclient.py::TestCapabilities::test_with_starttls - AssertionError: Tuples differ: (b'FOO', b'BAR') != (b'FOO', b'BAR', b'QUX')
FAILED tests/test_starttls.py::TestStarttls::test_fails_if_called_twice - TypeError: cannot unpack non-iterable MockIMAP4 object
23 failed, 244 passed in 0.99s
[The command completed with exit code 1.]
[Current working directory: /workspace/imapclient]
[Python interpreter: /usr/bin/python]
[Command finished with exit code 1]