def test_basics(self):
     assert to_hex_sha(NULL_HEX_SHA) == NULL_HEX_SHA
     assert len(to_bin_sha(NULL_HEX_SHA)) == 20
     assert to_hex_sha(to_bin_sha(NULL_HEX_SHA)) == NULL_HEX_SHA
コード例 #2
0
ファイル: exc.py プロジェクト: Kronuz/gitdb
 def __str__(self):
     return "BadObject: %s" % to_hex_sha(self.args[0])
コード例 #3
0
 def test_basics(self):
     assert to_hex_sha(NULL_HEX_SHA) == NULL_HEX_SHA
     assert len(to_bin_sha(NULL_HEX_SHA)) == 20
     assert to_hex_sha(to_bin_sha(NULL_HEX_SHA)) == NULL_HEX_SHA.encode("ascii")
コード例 #4
0
 def __str__(self):
     return "BadObject: %s" % to_hex_sha(self.args[0])