Mercurial > python-hglib
comparison tests/test-bundle.py @ 143:4359cabcb0cc
hglib: move string literals in the test code to util.b() (issue4520)
author | Brett Cannon <brett@python.org> |
---|---|
date | Mon, 09 Mar 2015 18:26:25 -0400 |
parents | 29d01b5dc38c |
children | c1b966866ed7 |
comparison
equal
deleted
inserted
replaced
142:fe74d5599539 | 143:4359cabcb0cc |
---|---|
1 import common | 1 import common |
2 from hglib.util import b | |
2 | 3 |
3 class test_bundle(common.basetest): | 4 class test_bundle(common.basetest): |
4 def test_no_changes(self): | 5 def test_no_changes(self): |
5 self.append('a', 'a') | 6 self.append('a', 'a') |
6 rev, node0 = self.client.commit('first', addremove=True) | 7 rev, node0 = self.client.commit(b('first'), addremove=True) |
7 self.assertFalse(self.client.bundle('bundle', destrepo='.')) | 8 self.assertFalse(self.client.bundle(b('bundle'), destrepo=b('.'))) |
8 | 9 |
9 def test_basic(self): | 10 def test_basic(self): |
10 self.append('a', 'a') | 11 self.append('a', 'a') |
11 rev, node0 = self.client.commit('first', addremove=True) | 12 rev, node0 = self.client.commit(b('first'), addremove=True) |
12 self.client.clone(dest='other') | 13 self.client.clone(dest=b('other')) |
13 | 14 |
14 self.append('a', 'a') | 15 self.append('a', 'a') |
15 rev, node1 = self.client.commit('second') | 16 rev, node1 = self.client.commit(b('second')) |
16 | 17 |
17 self.assertTrue(self.client.bundle('bundle', destrepo='other')) | 18 self.assertTrue(self.client.bundle(b('bundle'), destrepo=b('other'))) |