~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_repository/test_repository.py

  • Committer: Martin Pool
  • Date: 2010-02-25 06:17:27 UTC
  • mfrom: (5055 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5057.
  • Revision ID: mbp@sourcefrog.net-20100225061727-4sd9lt0qmdc6087t
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006, 2007 Canonical Ltd
 
1
# Copyright (C) 2006-2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
43
43
    pack_repo,
44
44
    weaverepo,
45
45
    )
46
 
from bzrlib.smart import server
47
 
from bzrlib.tests import per_repository
48
 
from bzrlib.transport.fakevfat import FakeVFATServer
 
46
from bzrlib.tests import (
 
47
    per_repository,
 
48
    test_server,
 
49
    )
49
50
 
50
51
 
51
52
class TestRepositoryMakeBranchAndTree(per_repository.TestCaseWithRepository):
83
84
        """Test the _fetch_reconcile attribute."""
84
85
        self.assertFormatAttribute('_fetch_reconcile', (True, False))
85
86
 
 
87
    def test_attribute_format_experimental(self):
 
88
        self.assertFormatAttribute('experimental', (True, False))
 
89
 
86
90
    def test_attribute_format_pack_compresses(self):
87
91
        self.assertFormatAttribute('pack_compresses', (True, False))
88
92
 
820
824
        """Make a RemoteRepository object backed by a real repository that will
821
825
        be created at the given path."""
822
826
        repo = self.make_repository(path, shared=shared)
823
 
        smart_server = server.SmartTCPServer_for_testing()
 
827
        smart_server = test_server.SmartTCPServer_for_testing()
824
828
        self.start_server(smart_server, self.get_server())
825
829
        remote_transport = transport.get_transport(
826
830
            smart_server.get_url()).clone(path)
1292
1296
        # about local disk layout/support.
1293
1297
        if isinstance(self.repository_format, remote.RemoteRepositoryFormat):
1294
1298
            return
1295
 
        self.transport_server = FakeVFATServer
 
1299
        self.transport_server = test_server.FakeVFATServer
1296
1300
        FOO_ID = 'foo<:>ID'
1297
1301
        REV_ID = 'revid-1'
1298
1302
        # this makes a default format repository always, which is wrong: