~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: John Arbash Meinel
  • Date: 2007-11-30 15:59:02 UTC
  • mto: This revision was merged to the branch mainline in revision 3061.
  • Revision ID: john@arbash-meinel.com-20071130155902-03cqo1ynbg2x7x5a
Change the lock check to raise ObjectNotLocked.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1195
1195
        repo = self.make_repository('.', format=format)
1196
1196
        packs = repo._pack_collection
1197
1197
        self.assertEqual([0], packs.pack_distribution(0))
1198
 
        
 
1198
 
 
1199
    def test_ensure_loaded_unlocked(self):
 
1200
        format = self.get_format()
 
1201
        repo = self.make_repository('.', format=format)
 
1202
        self.assertRaises(errors.ObjectNotLocked,
 
1203
                          repo._pack_collection.ensure_loaded)
 
1204
 
1199
1205
    def test_pack_distribution_one_to_nine(self):
1200
1206
        format = self.get_format()
1201
1207
        repo = self.make_repository('.', format=format)