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

Merge in bzr.dev 3801, resolve NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
478
478
    def supports_rich_root(self):
479
479
        return False
480
480
 
 
481
    def get_graph(self):
 
482
        raise NotImplementedError
 
483
 
 
484
    def get_parent_map(self, revision_ids):
 
485
        raise NotImplementedError
 
486
 
481
487
 
482
488
class InterDummy(repository.InterRepository):
483
489
    """An inter-repository optimised code path for DummyRepository.
1046
1052
    # thus there are not yet any tests.
1047
1053
 
1048
1054
 
 
1055
class TestOptimisingPacker(TestCaseWithTransport):
 
1056
    """Tests for the OptimisingPacker class."""
 
1057
 
 
1058
    def get_pack_collection(self):
 
1059
        repo = self.make_repository('.')
 
1060
        return repo._pack_collection
 
1061
 
 
1062
    def test_open_pack_will_optimise(self):
 
1063
        packer = pack_repo.OptimisingPacker(self.get_pack_collection(),
 
1064
                                            [], '.test')
 
1065
        new_pack = packer.open_pack()
 
1066
        self.assertIsInstance(new_pack, pack_repo.NewPack)
 
1067
        self.assertTrue(new_pack.revision_index._optimize_for_size)
 
1068
        self.assertTrue(new_pack.inventory_index._optimize_for_size)
 
1069
        self.assertTrue(new_pack.text_index._optimize_for_size)
 
1070
        self.assertTrue(new_pack.signature_index._optimize_for_size)
 
1071
 
 
1072
 
1049
1073
class TestInterDifferingSerializer(TestCaseWithTransport):
1050
1074
 
1051
1075
    def test_progress_bar(self):