コード例 #1
0
ファイル: test_identifier.py プロジェクト: zinat/pymdht
 def test_util(self):
     assert identifier._bin_to_hex(BIN_ID1) == HEX_ID1
     assert identifier._byte_xor('\0', '\1') == '\1'
コード例 #2
0
 def test_util(self):
     assert identifier._bin_to_hex(BIN_ID1) == HEX_ID1
     assert identifier._byte_xor('\0', '\1') == '\1'