Ejemplo n.º 1
0
 def test_call_with_blob(self):
     digest = '1234'
     formatter = content.get_formatter_for_type(constants.BLOB_TYPE_ID)
     unit = dict(digest=digest)
     self.assertEqual(formatter(unit), digest)
Ejemplo n.º 2
0
 def test_call_with_blob(self):
     digest = '1234'
     formatter = content.get_formatter_for_type(constants.BLOB_TYPE_ID)
     unit = dict(digest=digest)
     self.assertEqual(formatter(unit), digest)
Ejemplo n.º 3
0
 def test_call_with_manifest(self):
     digest = '1234'
     formatter = content.get_formatter_for_type(constants.MANIFEST_TYPE_ID)
     unit = dict(digest=digest)
     self.assertEqual(formatter(unit), digest)
Ejemplo n.º 4
0
 def test_call_with_manifest(self):
     digest = '1234'
     formatter = content.get_formatter_for_type(constants.MANIFEST_TYPE_ID)
     unit = dict(digest=digest)
     self.assertEqual(formatter(unit), digest)