示例#1
0
 def _to_dict(self):
     return_dict = {
         str(k): str(v)
         for k, v in
         BasePNGAPI.get_human_readable_inheritors_version_dict().items()
     }
     return return_dict
示例#2
0
 def test_png_api_identifier(self):
     self.assertEqual(BasePNGAPI.identifier(), 'png')
示例#3
0
    def test_png_direct_inheritors_version_dict(self):
        """This test will fail if a new version of the PNG API is added"""
        inheritors_version_dict = BasePNGAPI.get_direct_inheritors_version_dict()

        self.assertEqual(inheritors_version_dict[1], PNGAPIv1)
        self.assertEqual(len(inheritors_version_dict), 1)
示例#4
0
 def _to_dict(self):
     return_dict = {str(k): str(v) for k, v in BasePNGAPI.get_human_readable_inheritors_version_dict().items()}
     return return_dict