'L{TestLoader.loadByNames} preserves the order of tests provided to it.'

def test_loadByNamesPreservesOrder(self):

    modules = ['inheritancepackage.test_x.A.test_foo', 'twisted.trial.test.sample', 'goodpackage', 'twisted.trial.test.test_log', 'twisted.trial.test.sample.FooTest', 'package.test_module']
    suite1 = self.loader.loadByNames(modules)
    suite2 = runner.TestSuite(map(self.loader.loadByName, modules))
    self.assertEqual(testNames(suite1), testNames(suite2))
