~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_branch/test_create_checkout.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-14 19:57:16 UTC
  • mto: (6282.6.42 hpss-get-inventories)
  • mto: This revision was merged to the branch mainline in revision 6371.
  • Revision ID: jelmer@samba.org-20111214195716-if8ld0nzu2atxn06
Some test fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
        # All branches can define the format they want checkouts made in.
29
29
        # This checks it is honoured.
30
30
        expected_format = a_branch._get_checkout_format(lightweight=True)
31
 
        self.assertEqual(expected_format.get_branch_format().__class__,
32
 
                         tree.branch._format.__class__)
 
31
        self.assertEqual(expected_format.get_branch_format().network_name(),
 
32
                         tree.branch._format.network_name())
33
33
 
34
34
    def test_checkout_format_heavyweight(self):
35
35
        """Make sure the new heavy checkout uses the desired branch format."""
38
38
        # All branches can define the format they want checkouts made in.
39
39
        # This checks it is honoured.
40
40
        expected_format = a_branch._get_checkout_format(lightweight=False)
41
 
        self.assertEqual(expected_format.get_branch_format().__class__,
42
 
                         tree.branch._format.__class__)
 
41
        self.assertEqual(expected_format.get_branch_format().network_name(),
 
42
                         tree.branch._format.network_name())
43
43
 
44
44
    def test_create_revision_checkout(self):
45
45
        """Test that we can create a checkout from an earlier revision."""