def is_a_module(self, module_type):
        """
        Is the module of the required type?

        :param module_type: module type to check
        :type: str
        :return: True / False
        """
        if hasattr(self, 'type'):
            return module_type in self.type
        return module_type in self.module_types
def is_a_module ( self , module_type ) : if hasattr ( self , 'type' ) : return module_type in self . type return module_type in self . module_types
Is the module of the required type?

        :param module_type: module type to check
        :type: str
        :return: True / False