Example #1
0
    def entity_name(self, value):
        """
        """
        self._entity_name = value

        if value:
            self.instance_name = SDKUtils.get_python_name(value)
            self.entity_name_plural = SDKUtils.get_entity_name_plural(value)
            self.instance_name_plural = SDKUtils.get_python_name(self.entity_name_plural)
 def rest_name(self, value):
     """
     """
     self._rest_name = value
     if self.specification and self.specification.monolithe_config:
         self.local_name = SDKUtils.get_python_name(
             self.specification.monolithe_config.map_attribute(self.specification.rest_name, value)
         )
     else:
         self.local_name = SDKUtils.get_python_name(value)
 def rest_name(self, value):
     """
     """
     self._rest_name = value
     if self.specification and self.specification.monolithe_config:
         self.local_name = SDKUtils.get_python_name(
             self.specification.monolithe_config.map_attribute(
                 self.specification.rest_name, value))
     else:
         self.local_name = SDKUtils.get_python_name(value)
Example #4
0
    def assertPythonNameEquals(self, rest_name, python_name):
        """ Check that the remote name is well converted to
            the python name

        """
        self.assertEqual(SDKUtils.get_python_name(rest_name), python_name)
Example #5
0
    def assertPythonNameEquals(self, rest_name, python_name):
        """ Check that the remote name is well converted to
            the python name

        """
        self.assertEqual(SDKUtils.get_python_name(rest_name), python_name)