fudanchii committed dbc7438

Proper test for branch

Comments (0)

Files changed (1)


         # create a new branch, should still be default in branches until we commit
         # but branch should return the new branch
-        self.assertEquals(self.repo.hg_branch('test_branch').split("\n")[0],
-            "marked working directory as branch test_branch")
+        self.assertTrue("marked working directory as branch test_branch" in \
+                self.repo.hg_branch('test_branch'))
         self.assertEquals(self.repo.hg_branch(), "test_branch")
         branches = self.repo.get_branches()
         self.assertEquals(len(branches), 1)