~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Robert Collins
  • Date: 2007-10-15 01:45:03 UTC
  • mto: This revision was merged to the branch mainline in revision 2933.
  • Revision ID: robertc@robertcollins.net-20071015014503-0nxu50fz1xcfwy6f
Move hash tracking of new packs into NewPack.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
also see this file.
23
23
"""
24
24
 
 
25
import md5
25
26
from stat import S_ISDIR
26
27
from StringIO import StringIO
27
28
 
1160
1161
class TestNewPack(TestCaseWithTransport):
1161
1162
    """Tests for pack_repo.NewPack."""
1162
1163
 
1163
 
    def test_new_instance_has_new_indices(self):
 
1164
    def test_new_instance_attributes(self):
1164
1165
        pack = pack_repo.NewPack()
1165
1166
        self.assertIsInstance(pack.revision_index, InMemoryGraphIndex)
 
1167
        self.assertIsInstance(pack._hash, type(md5.new()))