def test_bytearray(self): self.assertEqual( signature.compute_signature(bytearray('123456789', 'utf-8')), 0x62EC59E3F1A4F00A)
def get_dsdl_signature(self): ''' Computes DSDL signature of this type. Please refer to the specification for details about signatures. ''' return compute_signature(self.get_dsdl_signature_source_definition())
def test_bytes(self): self.assertEqual(signature.compute_signature(b'123456789'), 0x62EC59E3F1A4F00A)