Пример #1
0
 def test_checksum_bytes(self):
     cs = checksum(b'TEST')
     self.assertEqual(cs, 320)
Пример #2
0
 def test_checksum_unicode(self):
     cs = checksum(u'TEST')
     self.assertEqual(cs, 320)
Пример #3
0
 def test_checksum_bytearray(self):
     cs = checksum(bytearray('TEST', 'utf-8'))
     self.assertEqual(cs, 320)