-# test_pack.py -- Compatibilty tests for git packs.
+# test_pack.py -- Compatibility tests for git packs.
# Copyright (C) 2010 Google, Inc.
#
# This program is free software; you can redistribute it and/or
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
-"""Compatibilty tests for git packs."""
+"""Compatibility tests for git packs."""
import binascii
def test_copy(self):
origpack = self.get_pack(pack1_sha)
- self.assertEquals(True, origpack.index.check())
+ self.assertSucceeds(origpack.index.check)
pack_path = os.path.join(self._tempdir, "Elch")
write_pack(pack_path, [(x, "") for x in origpack.iterobjects()],
len(origpack))