|
|
@@ -22,7 +22,7 @@ class MDBase(object): |
|
|
|
'''This is a simple wrapper that turns a JSON object into a pythonesc |
|
|
|
object where attribute accesses work.''' |
|
|
|
|
|
|
|
_common_properties = [ 'uuid', 'type', 'modified' ] |
|
|
|
_common_properties = [ 'uuid', 'type', 'modified', 'created_by_ref' ] |
|
|
|
|
|
|
|
def __init__(self, obj): |
|
|
|
for x in self._common_properties: |
|
|
@@ -266,6 +266,7 @@ class _TestCases(unittest.TestCase): |
|
|
|
'type': 'metadata', |
|
|
|
'uuid': 'c9a1d1e2-3109-4efd-8948-577dc15e44e7', |
|
|
|
'modified': datetime.datetime(2019, 5, 31, 14, 3, 10), |
|
|
|
'created_by_ref': '867c7563-79ae-435c-a265-9d8509cefac5', |
|
|
|
'hashes': [ 'sha256:91751cee0a1ab8414400238a761411daa29643ab4b8243e9a91649e25be53ada' ], |
|
|
|
'lang': 'en', |
|
|
|
}) |
|
|
|