'Verify that packages are loaded in the correct order.'

def loadSortedPackages(self, sorter=runner.name):

    import uberpackage
    self.loader.sorter = sorter
    suite = self.loader.loadPackage(uberpackage, recurse=True)
    suite = unittest.decorate(suite, ITestCase)
    resultingTests = list(_iterateTests(suite))
    manifest = list(self._trialSortAlgorithm(sorter))
    for (number, (manifestTest, actualTest)) in enumerate(zip(manifest, resultingTests)):
        self.assertEqual(manifestTest.name, actualTest.id(), ('#%d:    %s    !=    %s' % (number, manifestTest.name, actualTest.id())))
    self.assertEqual(len(manifest), len(resultingTests))
