Commit 6e1b42d6 authored by Priscila Manhaes's avatar Priscila Manhaes

Implemented getMetadata and setMetadata tests for interface

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@45141 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b177b693
......@@ -37,8 +37,12 @@ class TestInterface(unittest.TestCase):
def testIHandler(self):
"""Test if Handlers implements IHandler"""
# XXX this might verify Handler methods too
self.assertTrue(IHandler.implementedBy(Handler))
self.assertEquals(IHandler.get('convert').required, ('destination_format',))
self.assertEquals(IHandler.get('getMetadata').required,
('converted_data',))
self.assertEquals(IHandler.get('setMetadata').required,
('metadata_dict',))
def test_suite():
......
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