def test_checksum_bytes(self): cs = checksum(b'TEST') self.assertEqual(cs, 320)
def test_checksum_unicode(self): cs = checksum(u'TEST') self.assertEqual(cs, 320)
def test_checksum_bytearray(self): cs = checksum(bytearray('TEST', 'utf-8')) self.assertEqual(cs, 320)