def test_base64_roundtrip(self): for s in [ "", "a", "ab", "abc", "abcd", "abcde", "abcdef", "abcdefg", "abcdefgh", "abcdefghi", "abcdefghijklmnopqrstuvwxyz" ]: assert s == _base64_decode_utf8(_base64_encode(s))