예제 #1
0
    def test_write_with_args(self):
        stream = utils.BytearrayStream()
        payload = rekey_key_pair.RekeyKeyPairResponsePayload(
            self.private_key_uuid, self.public_key_uuid,
            self.private_key_template_attribute,
            self.public_key_template_attribute)

        self._test_write(stream, payload, self.encoding_full)
예제 #2
0
    def test_read_with_args(self):
        stream = self.encoding_full
        payload = rekey_key_pair.RekeyKeyPairResponsePayload(
            self.private_key_uuid, self.public_key_uuid,
            self.private_key_template_attribute,
            self.public_key_template_attribute)

        self._test_read(stream, payload, self.private_key_uuid,
                        self.public_key_uuid,
                        self.private_key_template_attribute,
                        self.public_key_template_attribute)
예제 #3
0
 def _create_rekey_key_pair_payload(self):
     return rekey_key_pair.RekeyKeyPairResponsePayload()
예제 #4
0
    def test_write_with_none(self):
        stream = utils.BytearrayStream()
        payload = rekey_key_pair.RekeyKeyPairResponsePayload()

        self._test_write(stream, payload, self.encoding_empty)
예제 #5
0
    def test_read_with_none(self):
        stream = self.encoding_empty
        payload = rekey_key_pair.RekeyKeyPairResponsePayload()

        self._test_read(stream, payload, self.empty_private_key_uuid,
                        self.empty_public_key_uuid, None, None)
예제 #6
0
 def test_init_with_args(self):
     rekey_key_pair.RekeyKeyPairResponsePayload(
         self.private_key_uuid, self.public_key_uuid,
         self.private_key_template_attribute,
         self.public_key_template_attribute)
예제 #7
0
 def test_init_with_none(self):
     rekey_key_pair.RekeyKeyPairResponsePayload()