'Tests na_element gets appended as child.'

def test_setter_na_element(self):

    root = netapp_api.NaElement('root')
    root['e1'] = netapp_api.NaElement('nested')
    self.assertEqual(1, len(root.get_children()))
    e1 = root.get_child_by_name('e1')
    self.assertIsInstance(e1, netapp_api.NaElement)
    self.assertIsInstance(e1.get_child_by_name('nested'), netapp_api.NaElement)
