~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2006-02-22 23:02:29 UTC
  • mto: (1570.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1571.
  • Revision ID: robertc@robertcollins.net-20060222230229-d5e0fb4ab1f46d9a
Add tests for sftp push, and NonLocalTets for BzrDir.create_branch_convenience, before fixing the failure of it to work on non-local urls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1195
1195
        url = self.get_readonly_url('branch/')
1196
1196
        self.run_bzr('check', url)
1197
1197
    
 
1198
    def test_push(self):
 
1199
        # create a source branch
 
1200
        os.mkdir('my-branch')
 
1201
        os.chdir('my-branch')
 
1202
        self.run_bzr('init')
 
1203
        file('hello', 'wt').write('foo')
 
1204
        self.run_bzr('add', 'hello')
 
1205
        self.run_bzr('commit', '-m', 'setup')
 
1206
 
 
1207
        # with an explicit target work
 
1208
        self.run_bzr('push', self.get_url('output-branch'))
 
1209
 
1198
1210
    
1199
1211
class HTTPTests(TestCaseWithWebserver, RemoteTests):
1200
1212
    """Test various commands against a HTTP server."""