diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-05-23 15:15:30 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-05-23 15:15:30 (GMT) |
commit | 8ac1495a6a1d18111a626cec0c7f2eb67df3edb3 (patch) | |
tree | 2d91993770d3a5b3f3668857983d9bf75276b14f /Lib/test/test_base64.py | |
parent | f655328483b2e237cc2f71c1c308eceb2f30f6fd (diff) | |
download | cpython-8ac1495a6a1d18111a626cec0c7f2eb67df3edb3.zip cpython-8ac1495a6a1d18111a626cec0c7f2eb67df3edb3.tar.gz cpython-8ac1495a6a1d18111a626cec0c7f2eb67df3edb3.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib/test/test_base64.py')
-rw-r--r-- | Lib/test/test_base64.py | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/Lib/test/test_base64.py b/Lib/test/test_base64.py index 8ee4d2e..02cbd49 100644 --- a/Lib/test/test_base64.py +++ b/Lib/test/test_base64.py @@ -6,20 +6,20 @@ from binascii import Error as binascii_error class Base64TestCase(unittest.TestCase): def test_encode_string(self): """Testing encode string""" - test_support.verify(base64.encodestring("www.python.org") == - "d3d3LnB5dGhvbi5vcmc=\n", + test_support.verify(base64.encodestring("www.python.org") == + "d3d3LnB5dGhvbi5vcmc=\n", reason="www.python.org encodestring failed") - test_support.verify(base64.encodestring("a") == - "YQ==\n", + test_support.verify(base64.encodestring("a") == + "YQ==\n", reason="a encodestring failed") - test_support.verify(base64.encodestring("ab") == - "YWI=\n", + test_support.verify(base64.encodestring("ab") == + "YWI=\n", reason="ab encodestring failed") - test_support.verify(base64.encodestring("abc") == - "YWJj\n", + test_support.verify(base64.encodestring("abc") == + "YWJj\n", reason="abc encodestring failed") - test_support.verify(base64.encodestring("") == - "", + test_support.verify(base64.encodestring("") == + "", reason="null encodestring failed") test_support.verify(base64.encodestring( "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#0^&*();:<>,. []{}") == @@ -29,16 +29,16 @@ class Base64TestCase(unittest.TestCase): def test_decode_string(self): """Testing decode string""" test_support.verify(base64.decodestring("d3d3LnB5dGhvbi5vcmc=\n") == - "www.python.org", + "www.python.org", reason="www.python.org decodestring failed") test_support.verify(base64.decodestring("YQ==\n") == - "a", + "a", reason="a decodestring failed") test_support.verify(base64.decodestring("YWI=\n") == - "ab", + "ab", reason="ab decodestring failed") test_support.verify(base64.decodestring("YWJj\n") == - "abc", + "abc", reason="abc decodestring failed") test_support.verify(base64.decodestring( "YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXpBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWjAxMjM0\nNTY3ODkhQCMwXiYqKCk7Ojw+LC4gW117fQ==\n") == @@ -50,10 +50,9 @@ class Base64TestCase(unittest.TestCase): pass else: self.fail("expected a binascii.Error on null decode request") - + def test_main(): test_support.run_unittest(Base64TestCase) if __name__ == "__main__": test_main() - |