'Tests if list gets properly converted to NaElements.'

def test_translate_struct_list(self):

    root = netapp_api.NaElement('root')
    child = ['e1', 'e2']
    root.translate_struct(child)
    self.assertEqual(2, len(root.get_children()))
    self.assertIsNone(root.get_child_content('e1'))
    self.assertIsNone(root.get_child_content('e2'))
