Beispiel #1
0
    def test_to_dict(self):
        name = CSVAPIv1.identifier()
        description = CSVAPIv1.description()
        version = CSVAPIv1.version()

        the_dict = CSVAPIv1.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 test_to_dict(self):
        name = CSVAPIv1.identifier()
        description = CSVAPIv1.description()
        version = CSVAPIv1.version()

        the_dict = CSVAPIv1.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 CSVAPIv1.to_dict()
Beispiel #4
0
 def _to_dict(self):
     return CSVAPIv1.to_dict()