~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/tests/test_pillar_vocabularies.py

  • Committer: Steve Kowalik
  • Date: 2011-08-02 06:30:18 UTC
  • mto: This revision was merged to the branch mainline in revision 13584.
  • Revision ID: stevenk@ubuntu.com-20110802063018-6bd2nhptqrpahnfk
Fix the ordering, and grab name so we can order by it

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        terms = self.vocabulary.searchForTerms('snark')
53
53
        result = [term.value for term in terms]
54
54
        self.assertEqual(
55
 
            [self.product, self.distribution, self.project_group], result)
 
55
            [self.project_group, self.product, self.distribution], result)
56
56
 
57
57
 
58
58
class TestDistributionOrProductVocabulary(TestCaseWithFactory):
106
106
            self.product.active = False
107
107
        terms = self.vocabulary.searchForTerms('snark')
108
108
        result = [term.value for term in terms]
109
 
        self.assertEqual([self.distribution, self.project_group], result)
 
109
        self.assertEqual([self.project_group, self.distribution], result)
110
110
        self.assertFalse(self.product in self.vocabulary)
111
111
 
112
112
    def test_inactive_product_groups_are_excluded(self):