Mercurial > public > mercurial-scm > python-hglib
comparison tests/test-copy.py @ 34:f6e1d9a6e0cd
client: change return value of status() to a list of (code, file path)
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Sun, 14 Aug 2011 00:51:15 +0300 |
parents | c072f525ea3e |
children | 4359cabcb0cc |
comparison
equal
deleted
inserted
replaced
33:d74a5891d9d1 | 34:f6e1d9a6e0cd |
---|---|
5 def test_basic(self): | 5 def test_basic(self): |
6 self.append('a', 'a') | 6 self.append('a', 'a') |
7 self.client.commit('first', addremove=True) | 7 self.client.commit('first', addremove=True) |
8 | 8 |
9 self.assertTrue(self.client.copy('a', 'b')) | 9 self.assertTrue(self.client.copy('a', 'b')) |
10 self.assertEquals(self.client.status()['A'], ['b']) | 10 self.assertEquals(self.client.status(), [('A', 'b')]) |
11 self.append('c', 'a') | 11 self.append('c', 'a') |
12 self.assertTrue(self.client.copy('a', 'c', after=True)) | 12 self.assertTrue(self.client.copy('a', 'c', after=True)) |
13 self.assertEquals(self.client.status()['A'], ['b', 'c']) | 13 self.assertEquals(self.client.status(), [('A', 'b'), ('A', 'c')]) |
14 | 14 |
15 # hg returns 0 even if there were warnings | 15 # hg returns 0 even if there were warnings |
16 #def test_warnings(self): | 16 #def test_warnings(self): |
17 # self.append('a', 'a') | 17 # self.append('a', 'a') |
18 # self.client.commit('first', addremove=True) | 18 # self.client.commit('first', addremove=True) |