def test_to_dict(self): name = PointAPIv1.identifier() description = PointAPIv1.description() version = PointAPIv1.version() the_dict = PointAPIv1.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 = PointAPIv1.identifier() description = PointAPIv1.description() version = PointAPIv1.version() the_dict = PointAPIv1.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 PointAPIv1.to_dict()
def _to_dict(self): return PointAPIv1.to_dict()