1
=== modified file 'shelf_tests.py'
5
ORIGINAL = '\n\nhello test world\n\n'
6
MODIFIED = '\n\ngoodbye test world\n\n'
7
DIFF_HEADER = "=== modified file 'test_file'\n"
8
- DIFF_1 = """--- test_file
10
+ DIFF_1 = """--- test_file\t
19
- DIFF_2 = """--- test_file
21
+ DIFF_2 = """--- test_file\t
27
self.assertEqual(stderr.split('\n')[0],
28
'bzr: ERROR: shelve only accepts a single revision parameter.')
30
- def disabled_test_shelf_with_whitespace(self):
31
+ def test_shelf_with_whitespace(self):
32
"""Shows that bzr doesn't handle whitespace well"""
34
- file('file\t name', 'wb').write('hello')
35
+ file('file name', 'wb').write('hello')
37
self.run_bzr('commit', '-m', 'added')
38
- file('file\t name', 'wb').write('goodbye')
39
- self.run_bzr('shelve', '--all', 'file name')
40
+ file('file name', 'wb').write('goodbye')
41
+ self.run_bzr('shelve', '--all', 'file name', retcode=1)
43
def test_whitespace_branches(self):
44
os.mkdir('name with space')