'L{StringListMailbox.listMessages} returns a list of the lengths of all
messages if not passed an index.'

def test_listAllMessages(self):

    mailbox = mail.maildir.StringListMailbox(['a', 'abc', 'ab'])
    self.assertEqual(mailbox.listMessages(), [1, 3, 2])
