~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testbzr

  • Committer: Martin Pool
  • Date: 2005-05-16 05:28:10 UTC
  • Revision ID: mbp@sourcefrog.net-20050516052810-dd81148c8af267f2
- add tests for files and directories with spaces in name
  (currently failing)

Show diffs side-by-side

added added

removed removed

Lines of Context:
324
324
 
325
325
    runcmd('bzr log')
326
326
    runcmd('bzr log -v')
 
327
 
 
328
 
 
329
 
 
330
    progress("file with spaces in name")
 
331
    mkdir('sub directory')
 
332
    file('sub directory/file with spaces ', 'wt').write('see how this works\n')
 
333
    runcmd('bzr add .')
 
334
    runcmd('bzr diff')
 
335
    runcmd('bzr commit -m add-spaces')
 
336
    runcmd('bzr check')
 
337
 
 
338
    
 
339
    
327
340
    
328
341
    cd('..')
329
342
    cd('..')
356
369
    assert backtick('bzr unknowns') == ''
357
370
    assert file('.bzrignore', 'rb').read() == '*.blah\ngarh\n'
358
371
 
 
372
 
 
373
 
359
374
    progress("all tests passed!")
360
375
except Exception, e:
361
376
    sys.stderr.write('*' * 50 + '\n'