File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 7
7
8
8
# Get the hexadecimal representation of the binary data
9
9
hex_data = hexlify (data )
10
- # Verify data
11
10
print ("Hex Data: " , hex_data )
12
- assert hex_data == b"43697263756974507974686f6e20697320417765736f6d6521" , "hexlified data does not match expected data."
13
-
11
+ # Verify data
12
+ assert (
13
+ hex_data == b"43697263756974507974686f6e20697320417765736f6d6521" ,
14
+ ), "hexlified data does not match expected data."
14
15
# Get the binary data represented by hex_data
15
16
bin_data = unhexlify (hex_data )
16
17
print ("Binary Data: " , bin_data )
29
30
bin_data = a2b_base64 (b"Qmxpbmth\n " )
30
31
print ("Converted b64 ASCII->Binary Data: " , bin_data )
31
32
assert bin_data == data , "Expected binary data does not match."
32
-
33
- print ("All checks OK!" )
You can’t perform that action at this time.
0 commit comments