~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/blackbox.py

  • Committer: Aaron Bentley
  • Date: 2006-12-12 02:21:50 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20061212022150-7lqyw46pbb3jhkak
Clean up patch command (support http urls again)

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
        file('mypatch', 'wb').write(self.runbzr('diff', retcode=1, backtick=1))
58
58
        self.runbzr('revert')
59
59
        assert file('myfile', 'rb').read() == 'hello'
60
 
        self.runbzr('patch --silent mypatch')
 
60
        self.runbzr('patch mypatch')
61
61
        assert file('myfile', 'rb').read() == 'goodbye'
62
62
 
63
63
    def test_branch_history(self):
128
128
        self.runbzr('commit -m hello')
129
129
        self.runbzr('export ../source-0.1.tar.gz')
130
130
        self.runbzr('export ../source-0.1.tar.bz2')
131
 
        self.runbzr('export ../source-0.1')
132
131
        self.runbzr('init ../import')
133
132
        os.chdir('../import')
134
133
        self.runbzr('import ../source-0.1.tar.gz')
145
144
        self.failUnlessExists('import3/src/myfile')
146
145
        self.runbzr('import source-0.1.tar.bz2 import4')
147
146
        self.failUnlessExists('import4/src/myfile')
148
 
        self.runbzr('import source-0.1 import5')
149
 
        self.failUnlessExists('import5/src/myfile')
150
147
 
151
148
def test_suite():
152
149
    return makeSuite(TestBzrTools)