Ejemplo n.º 1
0
    def test_to_dict(self):
        name = HTMLAPIv1.identifier()
        description = HTMLAPIv1.description()
        version = HTMLAPIv1.version()

        the_dict = HTMLAPIv1.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")
Ejemplo n.º 2
0
    def test_to_dict(self):
        name = HTMLAPIv1.identifier()
        description = HTMLAPIv1.description()
        version = HTMLAPIv1.version()

        the_dict = HTMLAPIv1.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")
Ejemplo n.º 3
0
 def _to_dict(self):
     return HTMLAPIv1.to_dict()
Ejemplo n.º 4
0
 def _to_dict(self):
     return HTMLAPIv1.to_dict()