subplot 0.2.0

tools for specifying, documenting, and implementing automated acceptance tests for systems and software
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
# Decode a base64 encoded string. Result is binary or unicode string.


import base64


def decode_bytes(s):
    return base64.b64decode(s)


def decode_str(s):
    return base64.b64decode(s).decode()