def test_to_dict(self): name = ZIPAPIv1.identifier() description = ZIPAPIv1.description() version = ZIPAPIv1.version() the_dict = ZIPAPIv1.to_dict() self.assertEqual(the_dict['name'], name, msg="Name should match") self.assertEqual(the_dict['description'], description, msg="Description should match") self.assertEqual(the_dict['version'], version, msg="Version should match")
def _to_dict(self): return ZIPAPIv1.to_dict()
def test_version(self): self.assertEqual(ZIPAPIv1.version(), 1, msg="Version should be 1")