'Tests random access for non-delta objects'

def test_get_object_at(self):

    with self.get_pack(pack1_sha) as p:
        obj = p[a_sha]
        self.assertEqual(obj.type_name, 'blob')
        self.assertEqual(obj.sha().hexdigest().encode('ascii'), a_sha)
        obj = p[tree_sha]
        self.assertEqual(obj.type_name, 'tree')
        self.assertEqual(obj.sha().hexdigest().encode('ascii'), tree_sha)
        obj = p[commit_sha]
        self.assertEqual(obj.type_name, 'commit')
        self.assertEqual(obj.sha().hexdigest().encode('ascii'), commit_sha)
