~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

  • Committer: Lalo Martins
  • Date: 2005-09-16 12:53:47 UTC
  • mto: (1185.1.26)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: lalo@exoweb.net-20050916125347-e134440582d72d53
blackbox tests for diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
        test.runbzr('add goodbye')
185
185
        test.runbzr('commit -m setup goodbye')
186
186
 
 
187
    def test_diff(self):
 
188
        self.example_branch()
 
189
        file('hello', 'wt').write('hello world!')
 
190
        self.runbzr('commit -m fixing hello')
 
191
        output = self.runbzr('diff -r 2..3', backtick=1)
 
192
        self.assert_('\n+hello world!' in output)
 
193
        output = self.runbzr('diff -r last:3..last:1', backtick=1)
 
194
        self.assert_('\n+baz' in output)
 
195
 
187
196
    def test_revert(self):
188
197
        self.example_branch()
189
198
        file('hello', 'wt').write('bar')