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

Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
 
17
import sys
17
18
from urllib import quote
18
19
 
19
20
from bzrlib import (
97
98
                bzrdir.format_registry.make_bzrdir(format).workingtree_format
98
99
            control.create_workingtree()
99
100
            tree = workingtree.WorkingTree.open('%s_co' % format)
100
 
            self.assertEqual(expected, info.describe_format(tree.bzrdir,
101
 
                tree.branch.repository, tree.branch, tree))
 
101
            format_description = info.describe_format(tree.bzrdir,
 
102
                    tree.branch.repository, tree.branch, tree)
 
103
            self.assertEqual(expected, format_description,
 
104
                "checkout of format called %r was described as %r" %
 
105
                (expected, format_description))
102
106
        finally:
103
107
            control._format.workingtree_format = old_format
104
108
 
128
132
 
129
133
    def test_describe_checkout_format(self):
130
134
        for key in bzrdir.format_registry.keys():
131
 
            if key in ('default', 'weave'):
 
135
            if key in ('default', 'weave', 'experimental'):
 
136
                continue
 
137
            if key.startswith('experimental-'):
 
138
                # these are typically hidden or aliases for other formats
132
139
                continue
133
140
            expected = None
134
141
            if key in ('dirstate', 'dirstate-tags', 'dirstate-with-subtree'):
242
249
        )
243
250
 
244
251
    def test_location_list(self):
 
252
        if sys.platform == 'win32':
 
253
            raise tests.TestSkipped('Windows-unfriendly test')
245
254
        locs = info.LocationList('/home/foo')
246
255
        locs.add_url('a', 'file:///home/foo/')
247
256
        locs.add_url('b', 'file:///home/foo/bar/')