File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 6
6
# Get the hexadecimal representation of the binary data
7
7
hex_data = hexlify (data )
8
8
# Verify data
9
- assert hex_data == b"43697263756974507974686f6e20697320417765736f6d6521" , "hexlified data does not match expected data."
9
+ assert (
10
+ hex_data == b"43697263756974507974686f6e20697320417765736f6d6521" ,
11
+ ), "hexlified data does not match expected data."
10
12
11
13
# Get the binary data represented by hex_data
12
14
bin_data = unhexlify (hex_data )
17
19
assert b2a_base64 (b"Blinka" ) == b"Qmxpbmth\n " , "Expected base64 coding does not match."
18
20
19
21
# Convert a block of base64 data back to binary data.
20
- assert a2b_base64 (b"Qmxpbmth\n " ) == b"Blinka" , "Expected binary data does not match."
22
+ assert a2b_base64 (b"Qmxpbmth\n " ) == b"Blinka" , "Expected binary data does not match."
You can’t perform that action at this time.
0 commit comments