~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_revert.py

  • Committer: Jelmer Vernooij
  • Date: 2011-05-16 13:39:39 UTC
  • mto: (5923.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 5925.
  • Revision ID: jelmer@samba.org-20110516133939-8u1pc9utas3uw1lt
Require a unicode prompt to be passed into all methods that prompt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
    def test_revert(self):
121
121
        self.run_bzr('init')
122
122
 
123
 
        with file('hello', 'wt') as f: f.write('foo')
 
123
        file('hello', 'wt').write('foo')
124
124
        self.run_bzr('add hello')
125
125
        self.run_bzr('commit -m setup hello')
126
126
 
127
 
        with file('goodbye', 'wt') as f: f.write('baz')
 
127
        file('goodbye', 'wt').write('baz')
128
128
        self.run_bzr('add goodbye')
129
129
        self.run_bzr('commit -m setup goodbye')
130
130
 
131
 
        with file('hello', 'wt') as f: f.write('bar')
132
 
        with file('goodbye', 'wt') as f: f.write('qux')
 
131
        file('hello', 'wt').write('bar')
 
132
        file('goodbye', 'wt').write('qux')
133
133
        self.run_bzr('revert hello')
134
134
        self.check_file_contents('hello', 'foo')
135
135
        self.check_file_contents('goodbye', 'qux')
157
157
        else:
158
158
            self.log("skipping revert symlink tests")
159
159
 
160
 
        with file('hello', 'wt') as f: f.write('xyz')
 
160
        file('hello', 'wt').write('xyz')
161
161
        self.run_bzr('commit -m xyz hello')
162
162
        self.run_bzr('revert -r 1 hello')
163
163
        self.check_file_contents('hello', 'foo')