Exemplo n.º 1
0
 def test_byte_array_to_hex_string(self):
     inp = bytearray('I\'m killing your brain like a poisonous mushroom')
     expected = '49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d'
     out = EncodingUtils.byte_array_to_hex_string(inp)
     self.assertEqual(out, expected)
Exemplo n.º 2
0
 def test_byte_array_to_hex_string(self):
     inp = bytearray('I\'m killing your brain like a poisonous mushroom')
     expected = '49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d'
     out = EncodingUtils.byte_array_to_hex_string(inp)
     self.assertEqual(out, expected)