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

  • Committer: Robert Collins
  • Date: 2007-07-12 14:44:10 UTC
  • mto: (2592.5.3 pack-repository)
  • mto: This revision was merged to the branch mainline in revision 2624.
  • Revision ID: robertc@robertcollins.net-20070712144410-0ucqo377rxnoc7wu
Empty files should validate ok.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        trans.put_bytes('name', "not an index\n")
64
64
        index = GraphIndex(trans, 'name')
65
65
        self.assertRaises(errors.BadIndexFormatSignature, index.validate)
 
66
 
 
67
    def test_validate_empty(self):
 
68
        index = self.make_index()
 
69
        index.validate()