'Tests invalid value raises exception.'

def test_setter_invalid_key(self):

    root = netapp_api.NaElement('root')
    try:
        root[None] = 'value'
    except Exception as e:
        if (not isinstance(e, KeyError)):
            self.fail(_('Error    not    a    KeyError.'))
