~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testbzr

  • Committer: Martin Pool
  • Date: 2005-04-28 09:48:28 UTC
  • Revision ID: mbp@sourcefrog.net-20050428094828-5ad7dab5d314b433
testbzr: test renames

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
    out = backtick("bzr status --all").replace('\r', '')
152
152
    assert out == "?       test.txt\n"
153
153
 
 
154
    progress("can't rename unversioned file")
 
155
    runcmd("bzr rename test.txt new-test.txt", 1)
 
156
 
154
157
    progress("adding a file")
155
158
 
156
159
    runcmd("bzr add test.txt")
157
160
    assert backtick("bzr unknowns") == ''
158
161
    assert backtick("bzr status --all").replace('\r', '') == "A       test.txt\n"
159
162
 
 
163
    progress("rename newly-added file")
 
164
    runcmd("bzr rename test.txt hello.txt")
 
165
 
160
166
    cd('..')
161
167
 
162
168
    progress("all tests passed!")