def testMerging2(self):
        branch = self.testBranching()
        self.repo.checkout(branch)
        self.commitSomeChange()
        master_branch = [b for b in self.repo.getBranches() if b.name == 'master'][0]
        self.assertNotEquals(branch.getHead(), master_branch.getHead())
        self.repo.checkout(master_branch)
        self.assertEquals(self.repo.getHead(), master_branch.getHead())
        self.assertNotEquals(self.repo.getHead(), branch.getHead())
        self.assertTrue(branch.getHead().getParents() in self.repo.getHead())
        self.repo.merge(branch)
        self.assertEquals(self.repo.getHead(), branch.getHead())
dataset/ETHPy150Open Infinidat/gitpy/tests/test_branching.py/TestBranching.testMerging2/swapped operands of `in`