Created
August 1, 2020 07:48
-
-
Save MartinThoma/2052122c6ce647aceedc39ba03a8d36a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from hypothesis import given, strategies as s | |
from base64 import b64encode, b64decode | |
@given(s.binary()) | |
def test_base64_encode_decode_together(data): | |
assert b64decode(b64encode(data)) == data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment