def test_getBranch(self):
     # The code review vote's target branch is the branch.
     branch = self.factory.makeBranch()
     vote = self.makeCodeReviewVote(branch)
     adapter = IHasAffiliation(vote)
     self.assertEqual(branch, adapter.getBranch())
 def test_getBranch(self):
     # The code review vote's target branch is the branch.
     branch = self.factory.makeBranch()
     vote = self.makeCodeReviewVote(branch)
     adapter = IHasAffiliation(vote)
     self.assertEqual(branch, adapter.getBranch())
 def test_getBranch(self):
     # The branch is the context.
     branch = self.factory.makeBranch()
     adapter = IHasAffiliation(branch)
     self.assertEqual(branch, adapter.getBranch())
 def test_getBranch(self):
     # The branch is the context.
     branch = self.factory.makeBranch()
     adapter = IHasAffiliation(branch)
     self.assertEqual(branch, adapter.getBranch())