~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-24 16:31:29 UTC
  • mfrom: (13774.3.3 test)
  • Revision ID: launchpad@pqm.canonical.com-20110824163129-rjpz41ld0jzmsbqk
[r=abentley][bug=833147] Revert regression of
 Branch.landing_candidates.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1780
1780
            set([(person1, 'review1'), (person2, 'review2')]), votes)
1781
1781
 
1782
1782
 
 
1783
class TestLandingCandidates(TestCaseWithFactory):
 
1784
 
 
1785
    layer = DatabaseFunctionalLayer
 
1786
 
 
1787
    def test_private_branch(self):
 
1788
        """landing_candidates works for private branches."""
 
1789
        branch = self.factory.makeBranch(private=True)
 
1790
        with person_logged_in(removeSecurityProxy(branch).owner):
 
1791
            mp = self.factory.makeBranchMergeProposal(target_branch=branch)
 
1792
            self.assertContentEqual([mp], branch.landing_candidates)
 
1793
 
 
1794
 
1783
1795
class BranchDateLastModified(TestCaseWithFactory):
1784
1796
    """Exercies the situations where date_last_modifed is udpated."""
1785
1797
    layer = DatabaseFunctionalLayer