~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Aaron Bentley
  • Date: 2008-10-26 10:00:24 UTC
  • mfrom: (0.12.70 shelf-manager)
  • mto: This revision was merged to the branch mainline in revision 3823.
  • Revision ID: aaron@aaronbentley.com-20081026100024-08whjq5p54yah68r
Merge shelf-manager into shelf-ui

Show diffs side-by-side

added added

removed removed

Lines of Context:
998
998
    # thus there are not yet any tests.
999
999
 
1000
1000
 
 
1001
class TestOptimisingPacker(TestCaseWithTransport):
 
1002
    """Tests for the OptimisingPacker class."""
 
1003
 
 
1004
    def get_pack_collection(self):
 
1005
        repo = self.make_repository('.')
 
1006
        return repo._pack_collection
 
1007
 
 
1008
    def test_open_pack_will_optimise(self):
 
1009
        packer = pack_repo.OptimisingPacker(self.get_pack_collection(),
 
1010
                                            [], '.test')
 
1011
        new_pack = packer.open_pack()
 
1012
        self.assertIsInstance(new_pack, pack_repo.NewPack)
 
1013
        self.assertTrue(new_pack.revision_index._optimize_for_size)
 
1014
        self.assertTrue(new_pack.inventory_index._optimize_for_size)
 
1015
        self.assertTrue(new_pack.text_index._optimize_for_size)
 
1016
        self.assertTrue(new_pack.signature_index._optimize_for_size)
 
1017
 
 
1018
 
1001
1019
class TestInterDifferingSerializer(TestCaseWithTransport):
1002
1020
 
1003
1021
    def test_progress_bar(self):