Пример #1
0
    def test_to_dict(self):
        name = RAPIv1.identifier()
        description = RAPIv1.description()
        version = RAPIv1.version()

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

        the_dict = RAPIv1.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")
Пример #3
0
 def _to_dict(self):
     return RAPIv1.to_dict()
Пример #4
0
 def test_version(self):
     self.assertEqual(RAPIv1.version(), 1, msg="Version should be 1")
Пример #5
0
 def test_version(self):
     self.assertEqual(RAPIv1.version(), 1, msg="Version should be 1")
Пример #6
0
 def _to_dict(self):
     return RAPIv1.to_dict()