'For fields with no information contained in the message headers,
L{imap4.getBodyStructure} fills in L{None} values in its result.'

def test_singlePartWithMissing(self):

    major = 'image'
    minor = 'jpeg'
    body = 'hello,    world'
    msg = FakeyMessage({'content-type': ((major + '/') + minor)}, (), '', body, 123, None)
    structure = imap4.getBodyStructure(msg, extended=True)
    self.assertEqual([major, minor, None, None, None, None, len(body), None, None, None, None], structure)
