Exemple #1
0
def test_asciihexdecode():
    eq_(ascii85.asciihexdecode('61 62 2e6364   65'), 'ab.cde')
    eq_(ascii85.asciihexdecode('61 62 2e6364   657>'), 'ab.cdep')
    eq_(ascii85.asciihexdecode('7>'), 'p')
Exemple #2
0
def test_asciihexdecode():
    eq_(ascii85.asciihexdecode('61 62 2e6364   65'), 'ab.cde')
    eq_(ascii85.asciihexdecode('61 62 2e6364   657>'), 'ab.cdep')
    eq_(ascii85.asciihexdecode('7>'), 'p')
Exemple #3
0
 def test_asciihexdecode(self):
     assert_equal(asciihexdecode(b'61 62 2e6364   65'), b'ab.cde')
     assert_equal(asciihexdecode(b'61 62 2e6364   657>'), b'ab.cdep')
     assert_equal(asciihexdecode(b'7>'), b'p')
Exemple #4
0
 def test_asciihexdecode(self):
     """Test ASCIIHex decoder"""
     self.assertEqual('ab.cde', asciihexdecode('61 62 2e6364   65'))
     self.assertEqual('ab.cdep', asciihexdecode('61 62 2e6364   657>'))
     self.assertEqual('p', asciihexdecode('7>'))