Mercurial > python-hglib
diff tests/test-branch.py @ 12:c2a9b716cd80
client: rewrite branches(), return a list of (branchname, rev, node)
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Wed, 10 Aug 2011 00:24:01 +0300 |
parents | 0549d00a617d |
children | f1af31960414 |
line wrap: on
line diff
--- a/tests/test-branch.py Wed Aug 10 00:21:05 2011 +0300 +++ b/tests/test-branch.py Wed Aug 10 00:24:01 2011 +0300 @@ -11,7 +11,8 @@ rev = self.client.commit('first', addremove=True) self.assertEquals(rev.branch, 'foo') - self.assertEquals(self.client.branches()[rev.branch], rev) + self.assertEquals(self.client.branches(), + [(rev.branch, int(rev.rev), rev.node[:12])]) def test_reset_with_name(self): self.assertRaises(ValueError, self.client.branch, 'foo', clean=True)