~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/blueprints/vocabularies/tests/test_specificationdependency.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-22 04:08:17 UTC
  • mfrom: (14564.2.1 megalint-8)
  • Revision ID: launchpad@pqm.canonical.com-20111222040817-zx0jfft9hedsc8he
[r=jtv][no-qa] Lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2010 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2010-2011 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
"""Tests for `SpecificationDepCandidatesVocabulary`.
220
220
        # Specs on the same distribution are returned first.
221
221
        mint = self.factory.makeDistribution()
222
222
        spec = self.factory.makeSpecification(distribution=mint)
223
 
        foo_b = self.factory.makeSpecification(name='foo-b', distribution=mint)
 
223
        foo_b = self.factory.makeSpecification(
 
224
            name='foo-b', distribution=mint)
224
225
        foo_a = self.factory.makeSpecification(name='foo-a')
225
226
        vocab = self.getVocabularyForSpec(spec)
226
227
        results = vocab.searchForTerms('foo')
235
236
        next = self.factory.makeDistroSeries(mint)
236
237
        spec = self.factory.makeSpecification(distribution=mint)
237
238
        spec.proposeGoal(next, mint.owner)
238
 
        foo_c = self.factory.makeSpecification(name='foo-c', distribution=mint)
 
239
        foo_c = self.factory.makeSpecification(
 
240
            name='foo-c', distribution=mint)
239
241
        foo_c.proposeGoal(next, mint.owner)
240
 
        foo_b = self.factory.makeSpecification(name='foo-b', distribution=mint)
 
242
        foo_b = self.factory.makeSpecification(
 
243
            name='foo-b', distribution=mint)
241
244
        foo_a = self.factory.makeSpecification(name='foo-a')
242
245
        vocab = self.getVocabularyForSpec(spec)
243
246
        results = vocab.searchForTerms('foo')