~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Martin Pool
  • Date: 2010-01-04 06:56:46 UTC
  • mto: This revision was merged to the branch mainline in revision 4932.
  • Revision ID: mbp@sourcefrog.net-20100104065646-nyy2b7lq6lvbtkf5
Give RepositoryPackCollection a repr

Show diffs side-by-side

added added

removed removed

Lines of Context:
1168
1168
        # check some arbitrary big numbers
1169
1169
        self.assertEqual(25, packs._max_pack_count(112894))
1170
1170
 
 
1171
    def test_repr(self):
 
1172
        packs = self.get_packs()
 
1173
        self.assertContainsRe(repr(packs),
 
1174
            'RepositoryPackCollection(.*Repository(.*))')
 
1175
 
1171
1176
    def test_pack_distribution_zero(self):
1172
1177
        packs = self.get_packs()
1173
1178
        self.assertEqual([0], packs.pack_distribution(0))