'When passed a I{multipart/*} message and C{True} for the C{extended}
argument, L{imap4.getBodyStructure} includes extended structure
information from the parts of the multipart message and extended
structure information about the multipart message itself.'

def test_multiPartExtended(self):

    oneSubPart = FakeyMessage({'content-type': 'image/jpeg;    x=y', 'content-id': 'some    kind    of    id', 'content-description': 'great    justice', 'content-transfer-encoding': 'maximum'}, (), '', 'hello    world', 123, None)
    anotherSubPart = FakeyMessage({'content-type': 'text/plain;    charset=us-ascii'}, (), '', 'some    stuff', 321, None)
    container = FakeyMessage({'content-type': 'multipart/related;    foo=bar', 'content-language': 'es', 'content-location': 'Spain', 'content-disposition': 'attachment;    name=monkeys'}, (), '', '', 555, [oneSubPart, anotherSubPart])
    self.assertEqual([imap4.getBodyStructure(oneSubPart, extended=True), imap4.getBodyStructure(anotherSubPart, extended=True), 'related', ['foo', 'bar'], ['attachment', ['name', 'monkeys']], 'es', 'Spain'], imap4.getBodyStructure(container, extended=True))
