~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/model/tests/test_hasmergeproposals.py

  • Committer: Aaron Bentley
  • Date: 2011-08-08 18:23:06 UTC
  • mto: This revision was merged to the branch mainline in revision 13634.
  • Revision ID: aaron@canonical.com-20110808182306-pz5mt01ovip56p5s
Enable +merges for DistributionSourcePackage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
import unittest
9
9
 
10
 
from canonical.launchpad.webapp.testing import verifyObject
 
10
from zope.interface.verify import verifyObject
11
11
from canonical.testing.layers import DatabaseFunctionalLayer
12
12
from lp.code.interfaces.hasbranches import IHasMergeProposals
13
13
from lp.registry.model.personproduct import PersonProduct
40
40
        person_product = PersonProduct(product.owner, product)
41
41
        verifyObject(IHasMergeProposals, person_product)
42
42
 
 
43
    def test_DistributionSourcePackage_implements_hasmergeproposals(self):
 
44
        # DistributionSourcePackages should implement IHasMergeProposals.
 
45
        dsp = self.factory.makeDistributionSourcePackage()
 
46
        verifyObject(IHasMergeProposals, dsp)
 
47
 
43
48
 
44
49
def test_suite():
45
50
    return unittest.TestLoader().loadTestsFromName(__name__)