~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/blueprints/tests/test_specification.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
"""Unit tests for Specification."""
65
65
        product2 = self.factory.makeProduct()
66
66
        specification1 = self.factory.makeSpecification(
67
67
            product=product1, name="foo")
68
 
        specification2 = self.factory.makeSpecification(
69
 
            product=product2, name="foo")
 
68
        self.factory.makeSpecification(product=product2, name="foo")
70
69
        self.assertRaises(
71
70
            TargetAlreadyHasSpecification,
72
71
            removeSecurityProxy(specification1).retarget, product2)
83
82
        product2 = self.factory.makeProduct()
84
83
        specification1 = self.factory.makeSpecification(
85
84
            product=product1, name="foo")
86
 
        specification2 = self.factory.makeSpecification(
 
85
        self.factory.makeSpecification(
87
86
            product=product2, name="foo")
88
87
        self.assertRaises(
89
88
            TargetAlreadyHasSpecification, specification1.validateMove,