示例#1
0
 def test_base64_roundtrip(self) -> None:
     for s in [
             "", "a", "ab", "abc", "abcd", "abcde", "abcdef", "abcdefg",
             "abcdefgh", "abcdefghi", "abcdefghijklmnopqrstuvwxyz"
     ]:
         assert s == _base64_decode(_base64_encode(s), encoding='utf-8')
示例#2
0
 def test_base64_roundtrip(self) -> None:
     for s in [
             "", "a", "ab", "abc", "abcd", "abcde", "abcdef", "abcdefg",
             "abcdefgh", "abcdefghi", "abcdefghijklmnopqrstuvwxyz"
     ]:
         assert s == _b64_to_utf8(_base64_encode(s))