~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bzrdir.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-10-06 20:45:48 UTC
  • mfrom: (4728.1.2 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20091006204548-bjnc3z4k256ppimz
MutableTree.has_changes() does not require a tree parameter anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Tests for the BzrDir facility and any format specific tests.
18
18
 
19
 
For interface contract tests, see tests/bzr_dir_implementations.
 
19
For interface contract tests, see tests/per_bzr_dir.
20
20
"""
21
21
 
22
22
import os
23
 
import os.path
24
 
from StringIO import StringIO
25
23
import subprocess
26
24
import sys
27
25
 
31
29
    help_topics,
32
30
    repository,
33
31
    osutils,
34
 
    symbol_versioning,
35
32
    remote,
36
33
    urlutils,
37
34
    win32utils,
47
44
    TestCaseWithMemoryTransport,
48
45
    TestCaseWithTransport,
49
46
    TestSkipped,
50
 
    test_sftp_transport
51
47
    )
52
48
from bzrlib.tests import(
53
49
    http_server,
1156
1152
    _transport = HttpTransport_urllib
1157
1153
 
1158
1154
    def _qualified_url(self, host, port):
1159
 
        return 'http+urllib://%s:%s' % (host, port)
 
1155
        result = 'http+urllib://%s:%s' % (host, port)
 
1156
        self.permit_url(result)
 
1157
        return result
1160
1158
 
1161
1159
 
1162
1160
 
1166
1164
    """Tests redirections for pycurl implementation"""
1167
1165
 
1168
1166
    def _qualified_url(self, host, port):
1169
 
        return 'http+pycurl://%s:%s' % (host, port)
 
1167
        result = 'http+pycurl://%s:%s' % (host, port)
 
1168
        self.permit_url(result)
 
1169
        return result
1170
1170
 
1171
1171
 
1172
1172
class TestHTTPRedirections_nosmart(TestHTTPRedirections,
1176
1176
    _transport = NoSmartTransportDecorator
1177
1177
 
1178
1178
    def _qualified_url(self, host, port):
1179
 
        return 'nosmart+http://%s:%s' % (host, port)
 
1179
        result = 'nosmart+http://%s:%s' % (host, port)
 
1180
        self.permit_url(result)
 
1181
        return result
1180
1182
 
1181
1183
 
1182
1184
class TestHTTPRedirections_readonly(TestHTTPRedirections,
1186
1188
    _transport = ReadonlyTransportDecorator
1187
1189
 
1188
1190
    def _qualified_url(self, host, port):
1189
 
        return 'readonly+http://%s:%s' % (host, port)
 
1191
        result = 'readonly+http://%s:%s' % (host, port)
 
1192
        self.permit_url(result)
 
1193
        return result
1190
1194
 
1191
1195
 
1192
1196
class TestDotBzrHidden(TestCaseWithTransport):