2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-15 07:43:26 +00:00

Add request and response payloads for the DeriveKey operation

This change adds request/response payloads for the DeriveKey
operation, updating the payload factories to support DeriveKey.
Unit tests for the payloads and payload factories are included.
The inequality operator was also added to the TemplateAttribute
struct to support the DeriveKey payload unit tests; differences
in Python2.7 and 3+ led to comparison failures.
This commit is contained in:
Peter Hamilton
2017-06-22 13:42:23 -04:00
parent 38ee408b21
commit 344cce83da
7 changed files with 2783 additions and 8 deletions

View File

@@ -947,6 +947,12 @@ class TemplateAttribute(Struct):
else:
return NotImplemented
def __ne__(self, other):
if isinstance(other, TemplateAttribute):
return not (self == other)
else:
return NotImplemented
class CommonTemplateAttribute(TemplateAttribute):