'Check the integrity of this pack.
:raise ChecksumMismatch: if a checksum for the index or data is wrong'

def check(self):

    self.index.check()
    self.data.check()
    for obj in self.iterobjects():
        obj.check()
