Exemplo n.º 1
0
def test_ascii85decode():
    eq_(ascii85.ascii85decode('9jqo^BlbD-BleB1DJ+*+F(f,q'),
        b'Man is distinguished')
    eq_(ascii85.ascii85decode('E,9)oF*2M7/c~>'), b'pleasure.')
Exemplo n.º 2
0
def test_ascii85decode():
    eq_(ascii85.ascii85decode('9jqo^BlbD-BleB1DJ+*+F(f,q'), b'Man is distinguished')
    eq_(ascii85.ascii85decode('E,9)oF*2M7/c~>'), b'pleasure.')
Exemplo n.º 3
0
 def test_ascii85decode(self):
     """The sample string is taken from:
     http://en.wikipedia.org/w/index.php?title=Ascii85"""
     assert_equal(ascii85decode(b'9jqo^BlbD-BleB1DJ+*+F(f,q'),
                  b'Man is distinguished')
     assert_equal(ascii85decode(b'E,9)oF*2M7/c~>'), b'pleasure.')
Exemplo n.º 4
0
 def test_ascii85decode(self):
     """Test ASCII85 decoder"""
     self.assertEqual('Man is distinguished', ascii85decode('9jqo^BlbD-BleB1DJ+*+F(f,q'))
     self.assertEqual('pleasure.', ascii85decode('E,9)oF*2M7/c~>'))