Unverified Commit 14c18280 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

add test for private digital object


Signed-off-by: Sebastian Schüpbach's avatarSebastian Schüpbach <sebastian.schuepbach@unibas.ch>
parent aadb4805
Pipeline #16822 passed with stages
in 4 minutes and 12 seconds
......@@ -75,6 +75,24 @@ class Test(TestCase):
dig_obj_val = MediametadataToDB._get_values_from_digital_object(digital_object, 'public')
self.assertDictEqual(dig_obj_val, res)
def test__get_values_from_closed_digital_object(self):
res = {
'sig': 'mfk-FLM-167202-1',
'access': 'private',
'mimetype': 'video/mpeg',
'height': '384.0',
'width': '512.0',
'duration': '524.970667',
'uri': 'http://datenbanksammlungen.mfk.ch/eMP/' +
'eMuseumPlus?service=MultimediaAsset&objectId=144755&memobaseExt=mp4',
'type': 'video',
'proto': 'proxy'
}
digital_object = Test._load_file_and_get_res('mfk-FLM-167202.json',
Test._get_digital_object)
dig_obj_val = MediametadataToDB._get_values_from_digital_object(digital_object, 'private')
self.assertDictEqual(dig_obj_val, res)
def test__get_values_from_accessible_digital_object(self):
res = {
'sig': 'mfk-FLM-167202-1',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment