Skip to content

Instantly share code, notes, and snippets.

@MartinThoma
Created August 1, 2020 07:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinThoma/2052122c6ce647aceedc39ba03a8d36a to your computer and use it in GitHub Desktop.
Save MartinThoma/2052122c6ce647aceedc39ba03a8d36a to your computer and use it in GitHub Desktop.
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