def test_add_bytearray(self): s = signature.Signature() s.add(bytearray('123456789', 'utf-8')) self.assertEqual(s.get_value(), 0x62EC59E3F1A4F00A)
def test_add(self): s = signature.Signature() s.add('123456789') self.assertEqual(s.get_value(), 0x62EC59E3F1A4F00A)
def test_add_multiple(self): s = signature.Signature() for c in '123456789': s.add(c) self.assertEqual(s.get_value(), 0x62EC59E3F1A4F00A)