'Literals should be recognized even when they are not preceded by
whitespace.'

def test_literalWithoutPrecedingWhitespace(self):

    transport = StringTransport()
    protocol = imap4.IMAP4Client()
    protocol.makeConnection(transport)
    protocol.lineReceived('*    OK    [IMAP4rev1]')
    def login():
        d = protocol.login('blah', 'blah')
        protocol.dataReceived('0001    OK    LOGIN\r\n')
        return d
    def select():
        d = protocol.select('inbox')
        protocol.lineReceived('0002    OK    SELECT')
        return d
    def fetch():
        d = protocol.fetchSpecific('1:*', headerType='HEADER.FIELDS', headerArgs=['SUBJECT'])
        protocol.dataReceived('*    1    FETCH    (BODY[HEADER.FIELDS    ({7}\r\nSUBJECT)]    "Hello")\r\n')
        protocol.dataReceived('0003    OK    FETCH    completed\r\n')
        return d
    def test(result):
        self.assertEqual(result, {1: [['BODY', ['HEADER.FIELDS', ['SUBJECT']], 'Hello']]})
    d = login()
    d.addCallback(strip(select))
    d.addCallback(strip(fetch))
    d.addCallback(test)
    return d
