Exemplo n.º 1
0
 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))
Exemplo n.º 2
0
 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))