def test_write_with_args(self):
        stream = utils.BytearrayStream()
        payload = payloads.RekeyKeyPairRequestPayload(
            self.private_key_uuid, self.offset, self.common_template_attribute,
            self.private_key_template_attribute,
            self.public_key_template_attribute)

        self._test_write(stream, payload, self.encoding_full)
    def test_read_with_args(self):
        stream = self.encoding_full
        payload = payloads.RekeyKeyPairRequestPayload()

        self._test_read(stream, payload, self.private_key_uuid, self.offset,
                        self.common_template_attribute,
                        self.private_key_template_attribute,
                        self.public_key_template_attribute)
Exemple #3
0
 def _create_rekey_key_pair_payload(self):
     return payloads.RekeyKeyPairRequestPayload()
 def test_init_with_args(self):
     payloads.RekeyKeyPairRequestPayload(
         self.private_key_uuid, self.offset, self.common_template_attribute,
         self.private_key_template_attribute,
         self.public_key_template_attribute)
 def test_init_with_none(self):
     payloads.RekeyKeyPairRequestPayload()
    def test_write_with_none(self):
        stream = utils.BytearrayStream()
        payload = payloads.RekeyKeyPairRequestPayload()

        self._test_write(stream, payload, self.encoding_empty)
    def test_read_with_none(self):
        stream = self.encoding_empty
        payload = payloads.RekeyKeyPairRequestPayload()

        self._test_read(stream, payload, None, None, None, None, None)