def test_base64decode(): """The base64decode wrapper works properly""" assert base64decode("YWJjMTIz") == "abc123" assert (base64decode( "InRlc3RAbWFpbGluYXRvci5jb20iLkRHeGVvQS5sQ3NzVTNNMlF1QmZvaE8tRnRkZ0RRTEtiVTQ" ) == '"*****@*****.**".DGxeoA.lCssU3M2QuBfohO-FtdgDQLKbU4') assert base64decode("dXNlcit1c2VyQGN0ZmQuaW8") == "*****@*****.**" assert base64decode("8J-Yhg") == "😆"
def test_base64decode(): """The base64decode wrapper works properly""" if six.PY2: assert base64decode('YWJjMTIz') == 'abc123' assert base64decode(unicode('YWJjMTIz')) == 'abc123' assert base64decode(unicode('InRlc3RAbWFpbGluYXRvci5jb20iLkRHeGVvQS5sQ3NzVTNNMlF1QmZvaE8tRnRkZ0RRTEtiVTQ') ) == '"*****@*****.**".DGxeoA.lCssU3M2QuBfohO-FtdgDQLKbU4' assert base64decode('8J-Yhg') == '😆' else: assert base64decode('YWJjMTIz') == 'abc123' assert base64decode( 'InRlc3RAbWFpbGluYXRvci5jb20iLkRHeGVvQS5sQ3NzVTNNMlF1QmZvaE8tRnRkZ0RRTEtiVTQ') == '"*****@*****.**".DGxeoA.lCssU3M2QuBfohO-FtdgDQLKbU4' assert base64decode('dXNlcit1c2VyQGN0ZmQuaW8') == '*****@*****.**' assert base64decode('8J-Yhg') == '😆'