'Tests invalid value raises exception.'

def test_setter_invalid_value(self):

    root = netapp_api.NaElement('root')
    try:
        root['k'] = netapp_api.NaServer('localhost')
    except Exception as e:
        if (not isinstance(e, TypeError)):
            self.fail(_('Error    not    a    TypeError.'))
