~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_info.py

  • Committer: Alexander Belchenko
  • Date: 2007-10-04 05:50:44 UTC
  • mfrom: (2881 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2884.
  • Revision ID: bialix@ukr.net-20071004055044-pb88kgkfayawro8n
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
                bzrdir.format_registry.make_bzrdir(format).workingtree_format
99
99
            control.create_workingtree()
100
100
            tree = workingtree.WorkingTree.open('%s_co' % format)
101
 
            self.assertEqual(expected, info.describe_format(tree.bzrdir,
102
 
                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))
103
106
        finally:
104
107
            control._format.workingtree_format = old_format
105
108
 
129
132
 
130
133
    def test_describe_checkout_format(self):
131
134
        for key in bzrdir.format_registry.keys():
132
 
            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
133
139
                continue
134
140
            expected = None
135
141
            if key in ('dirstate', 'dirstate-tags', 'dirstate-with-subtree'):