~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_pack_repository.py

  • Committer: Robert Collins
  • Date: 2009-02-27 01:02:40 UTC
  • mto: This revision was merged to the branch mainline in revision 4060.
  • Revision ID: robertc@robertcollins.net-20090227010240-35dzaxn8bah0razi
Move the fetch control attributes from Repository to RepositoryFormat.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
        """Packs do not need ordered data retrieval."""
74
74
        format = self.get_format()
75
75
        repo = self.make_repository('.', format=format)
76
 
        self.assertEqual('unordered', repo._fetch_order)
 
76
        self.assertEqual('unordered', repo._format._fetch_order)
77
77
 
78
78
    def test_attribute__fetch_uses_deltas(self):
79
79
        """Packs reuse deltas."""
80
80
        format = self.get_format()
81
81
        repo = self.make_repository('.', format=format)
82
 
        self.assertEqual(True, repo._fetch_uses_deltas)
 
82
        self.assertEqual(True, repo._format._fetch_uses_deltas)
83
83
 
84
84
    def test_disk_layout(self):
85
85
        format = self.get_format()