'Test that the registered entries are returned in weight-order, no matter
which order they were added.'

def test_get_entries(self):

    wizard_pool._clear()
    wizard_pool.register(self.page_wizard)
    wizard_pool.register(self.user_settings_wizard)
    wizards = [self.page_wizard, self.user_settings_wizard]
    wizards = sorted(wizards, key=(lambda e: getattr(e, 'weight')))
    entries = wizard_pool.get_entries()
    self.assertSequencesEqual(entries, wizards)
    wizard_pool._clear()
    wizard_pool.register(self.user_settings_wizard)
    wizard_pool.register(self.page_wizard)
    wizards = [self.page_wizard, self.user_settings_wizard]
    wizards = sorted(wizards, key=(lambda e: getattr(e, 'weight')))
    entries = wizard_pool.get_entries()
    self.assertSequencesEqual(entries, wizards)
