'A valid state is one of:
- installed
- absent'

@classmethod
def valid_state(cls, state):

    if (state is None):
        return True
    else:
        return (isinstance(state, basestring) and (state.lower() in ('installed', 'absent')))
