'If the server response to a I{SELECT} or I{EXAMINE} command includes an
I{FLAGS} response, the L{Deferred} returned by L{IMAP4Client.select} or
L{IMAP4Client.examine} fires with a C{dict} including the value
associated with the C{\'FLAGS\'} key.'

def test_flags(self):

    d = self._examineOrSelect()
    self._response('*    FLAGS    (\\Answered    \\Flagged    \\Deleted    \\Seen    \\Draft)')
    self.assertEqual(self._extractDeferredResult(d), {'READ-WRITE': False, 'FLAGS': ('\\Answered', '\\Flagged', '\\Deleted', '\\Seen', '\\Draft')})
