示例#1
0
    def test_read_with_args(self):
        stream = self.encoding_full
        payload = payloads.CreateKeyPairRequestPayload()

        self._test_read(stream, payload, self.common_template_attribute,
                        self.private_key_template_attribute,
                        self.public_key_template_attribute)
示例#2
0
    def test_write_with_args(self):
        stream = utils.BytearrayStream()
        payload = payloads.CreateKeyPairRequestPayload(
            self.common_template_attribute,
            self.private_key_template_attribute,
            self.public_key_template_attribute)

        self._test_write(stream, payload, self.encoding_full)
示例#3
0
 def _create_create_key_pair_payload(self):
     return payloads.CreateKeyPairRequestPayload()
示例#4
0
 def test_init_with_args(self):
     payloads.CreateKeyPairRequestPayload(
         self.common_template_attribute,
         self.private_key_template_attribute,
         self.public_key_template_attribute)
示例#5
0
 def test_init_with_none(self):
     payloads.CreateKeyPairRequestPayload()
示例#6
0
    def test_write_with_none(self):
        stream = utils.BytearrayStream()
        payload = payloads.CreateKeyPairRequestPayload()

        self._test_write(stream, payload, self.encoding_empty)
示例#7
0
    def test_read_with_none(self):
        stream = self.encoding_empty
        payload = payloads.CreateKeyPairRequestPayload()

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