def test_decodeWithErrors(self):
        """
        Similar to L{test_encodeWithErrors}, but for C{bytes.decode}.
        """
        bytes = b'Hello world'
        self.assertEqual(
            bytes.decode('imap4-utf-7', 'strict'),
            bytes.decode('imap4-utf-7'))

        Similar to L{test_encodeWithErrors}, but for C{bytes.decode}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/mail/test/test_imap.py