예제 #1
0
    def test_to_dict(self):
        name = PNGAPIv1.identifier()
        description = PNGAPIv1.description()
        version = PNGAPIv1.version()

        the_dict = PNGAPIv1.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")
예제 #2
0
 def _to_dict(self):
     return PNGAPIv1.to_dict()
예제 #3
0
 def test_version(self):
     self.assertEqual(PNGAPIv1.version(), 1, msg="Version should be 1")
예제 #4
0
 def _to_dict(self):
     return PNGAPIv1.to_dict()