def test_read_with_args(self): stream = self.encoding_full payload = create_key_pair.CreateKeyPairRequestPayload() self._test_read(stream, payload, self.common_template_attribute, self.private_key_template_attribute, self.public_key_template_attribute)
def test_write_with_args(self): stream = utils.BytearrayStream() payload = create_key_pair.CreateKeyPairRequestPayload( self.common_template_attribute, self.private_key_template_attribute, self.public_key_template_attribute) self._test_write(stream, payload, self.encoding_full)
def _build_create_key_pair_batch_item(self, common_template_attribute=None, private_key_template_attribute=None, public_key_template_attribute=None): operation = Operation(OperationEnum.CREATE_KEY_PAIR) payload = create_key_pair.CreateKeyPairRequestPayload( common_template_attribute=common_template_attribute, private_key_template_attribute=private_key_template_attribute, public_key_template_attribute=public_key_template_attribute) batch_item = messages.RequestBatchItem( operation=operation, request_payload=payload) return batch_item
def _create_create_key_pair_payload(self): return create_key_pair.CreateKeyPairRequestPayload()
def test_init_with_args(self): create_key_pair.CreateKeyPairRequestPayload( self.common_template_attribute, self.private_key_template_attribute, self.public_key_template_attribute)
def test_init_with_none(self): create_key_pair.CreateKeyPairRequestPayload()
def test_write_with_none(self): stream = utils.BytearrayStream() payload = create_key_pair.CreateKeyPairRequestPayload() self._test_write(stream, payload, self.encoding_empty)
def test_read_with_none(self): stream = self.encoding_empty payload = create_key_pair.CreateKeyPairRequestPayload() self._test_read(stream, payload, None, None, None)