~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testbzr

  • Committer: Martin Pool
  • Date: 2005-04-28 09:42:20 UTC
  • Revision ID: mbp@sourcefrog.net-20050428094220-9e055309c7ac85de
- more tests for unknown file

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
    runcmd(['mkdir', 'branch1'])
136
136
    cd('branch1')
137
137
    runcmd('bzr init')
 
138
 
 
139
    progress("status of new file")
138
140
    
139
141
    f = file('test.txt', 'wt')
140
142
    f.write('hello world!\n')
141
143
    f.close()
142
144
 
143
 
    unknowns = backtick("bzr unknowns").rstrip('\r\n')
144
 
    assert unknowns == 'test.txt'
 
145
    out = backtick("bzr unknowns").rstrip('\r\n')
 
146
    assert out == 'test.txt'
 
147
 
 
148
    out = backtick("bzr status").replace('\r', '')
 
149
    assert out == '''?       test.txt\n'''
 
150
 
 
151
    out = backtick("bzr status --all").replace('\r', '')
 
152
    assert out == '''?       test.txt\n'''
145
153
 
146
154
    cd('..')
147
155
 
154
162
    logfile.write('tests failed!\n')
155
163
    traceback.print_exc(None, logfile)
156
164
    sys.exit(1)
157