744
744
def test_trailing_garbage(self):
745
745
tree, state, expected = self.create_basic_dirstate()
747
750
f = open('dirstate', 'ab')
749
752
# Add bogus trailing garbage
753
757
e = self.assertRaises(errors.DirstateCorrupt,
754
758
state._read_dirblocks_if_needed)
755
759
# Make sure we mention the bogus characters in the error