Exemplo n.º 1
0
 def _to_dict(self):
     return_dict = {
         str(k): str(v)
         for k, v in
         BasePointAPI.get_human_readable_inheritors_version_dict().items()
     }
     return return_dict
Exemplo n.º 2
0
    def test_point_direct_inheritors_version_dict(self):
        """This test will fail if a new version of the Point API is added"""
        inheritors_version_dict = BasePointAPI.get_direct_inheritors_version_dict(
        )

        self.assertEqual(inheritors_version_dict[1], PointAPIv1)
        self.assertEqual(len(inheritors_version_dict), 1)
Exemplo n.º 3
0
 def test_point_api_identifier(self):
     self.assertEqual(BasePointAPI.identifier(), "point")
Exemplo n.º 4
0
    def test_point_direct_inheritors_version_dict(self):
        """This test will fail if a new version of the Point API is added"""
        inheritors_version_dict = BasePointAPI.get_direct_inheritors_version_dict()

        self.assertEqual(inheritors_version_dict[1], PointAPIv1)
        self.assertEqual(len(inheritors_version_dict), 1)
Exemplo n.º 5
0
 def _to_dict(self):
     return_dict = {str(k): str(v) for k, v in BasePointAPI.get_human_readable_inheritors_version_dict().items()}
     return return_dict
Exemplo n.º 6
0
 def test_point_api_identifier(self):
     self.assertEqual(BasePointAPI.identifier(), 'point')