Skip to content

Commit edcd42c

Browse files
author
brentru
committed
add simpletest
1 parent e4c67c9 commit edcd42c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/binascii_simpletest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
# Get the hexadecimal representation of the binary data
77
hex_data = hexlify(data)
88
# 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."
1012

1113
# Get the binary data represented by hex_data
1214
bin_data = unhexlify(hex_data)
@@ -17,4 +19,4 @@
1719
assert b2a_base64(b"Blinka") == b"Qmxpbmth\n", "Expected base64 coding does not match."
1820

1921
# 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."

0 commit comments

Comments
 (0)