'Tests that the correct object offset is returned from the index.'

def test_object_index(self):

    p = self.get_pack_index(pack1_sha)
    self.assertRaises(KeyError, p.object_index, pack1_sha)
    self.assertEqual(p.object_index(a_sha), 178)
    self.assertEqual(p.object_index(tree_sha), 138)
    self.assertEqual(p.object_index(commit_sha), 12)
