/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_http.py

Merge with walkdirs

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
import bzrlib
36
36
from bzrlib import (
 
37
    bzrdir,
37
38
    config,
38
39
    errors,
39
40
    osutils,
 
41
    remote as _mod_remote,
40
42
    tests,
41
43
    transport,
42
44
    ui,
1667
1669
        return http_utils.HTTPServerWithSmarts(
1668
1670
            protocol_version=self._protocol_version)
1669
1671
 
 
1672
    def test_open_bzrdir(self):
 
1673
        branch = self.make_branch('relpath')
 
1674
        http_server = self.get_readonly_server()
 
1675
        url = http_server.get_url() + 'relpath'
 
1676
        bd = bzrdir.BzrDir.open(url)
 
1677
        self.assertIsInstance(bd, _mod_remote.RemoteBzrDir)
 
1678
 
1670
1679
    def test_bulk_data(self):
1671
1680
        # We should be able to send and receive bulk data in a single message.
1672
1681
        # The 'readv' command in the smart protocol both sends and receives