'--order=toptobottom causes trial to run test modules within a given
package alphabetically, with tests within each module run top to
bottom.'

def test_toptobottomPackage(self):

    self.config.parseOptions(['--order', 'toptobottom', 'twisted.trial.test'])
    loader = trial._getLoader(self.config)
    suite = loader.loadByNames(self.config['tests'])
    names = testNames(suite)
    self.assertEqual(names, sorted(names, key=(lambda name: name.split('.')[:4])))
