/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_remove.py

  • Committer: Martin Pool
  • Date: 2006-01-13 09:57:13 UTC
  • mto: This revision was merged to the branch mainline in revision 1611.
  • Revision ID: mbp@sourcefrog.net-20060113095713-1fa5912229a3898e
Review updates of pycurl transport

Split them out into 

  bzrlib.transport.http             common base
  bzrlib.transport.http._urllib     pure python
  bzrlib.transport.http._pycurl     calls pycurl

Update to work with robert's nice transport test multiplexer.

Add PyCurlTransport.has() which does just a HEAD request; should be faster.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from bzrlib.tests import TestCaseInTempDir
 
2
from bzrlib.branch import Branch
 
3
 
 
4
class TestRemove(TestCaseInTempDir):
 
5
    def test_remove_verbose(self):
 
6
        b = Branch.initialize(u'.')
 
7
        self.build_tree(['hello'])
 
8
        wt = b.working_tree() 
 
9
        wt.add(['hello'])
 
10
        wt.commit(message='add hello')
 
11
        eq = self.assertEquals
 
12
        wt.remove(['hello'], verbose=True)