'Tests if dict gets properly converted to NaElements.'

def test_translate_struct_dict_unique_key(self):

    root = netapp_api.NaElement('root')
    child = {'e1': 'v1', 'e2': 'v2', 'e3': 'v3'}
    root.translate_struct(child)
    self.assertEqual(3, len(root.get_children()))
    self.assertEqual('v1', root.get_child_content('e1'))
    self.assertEqual('v2', root.get_child_content('e2'))
    self.assertEqual('v3', root.get_child_content('e3'))
