def get_setter_methods(self): """ Get all setter methods which are available in the item. :return: A dict with all setter methods. """ return utils.get_setter_methods_from_fields(self, self.get_fields())
def test_get_setter_methods_from_fields(): # Arrange test_api = CobblerAPI() test_manager = CollectionManager(test_api) test_distro = Distro(test_manager) # Act result = utils.get_setter_methods_from_fields(test_distro, test_distro.get_fields()) # Assert assert isinstance(result, dict)
def get_setter_methods(self): return utils.get_setter_methods_from_fields(self, self.get_fields())