Ejemplo n.º 1
0
 def testDictToNodeWithNote(self):
     d = dict_to_note(Note('A note.', 'note'))
     self.assertEqual('A note.', d.note)
     self.assertEqual('note', d.type)
     self.assertEqual('und', d.language)
Ejemplo n.º 2
0
 def testDictToNodeWithNote(self):
     d = dict_to_note(Note('A note.', 'note'))
     self.assertEqual('A note.', d.note)
     self.assertEqual('note', d.type)
Ejemplo n.º 3
0
 def testDictToNodeWithDict(self):
     d = dict_to_note({'note': 'A note.', 'type': 'note'})
     self.assertEqual('A note.', d.note)
     self.assertEqual('note', d.type)
     self.assertEqual('und', d.language)
Ejemplo n.º 4
0
 def testDictToNodeWithDict(self):
     d = dict_to_note({'note': 'A note.', 'type': 'note'})
     self.assertEqual('A note.', d.note)
     self.assertEqual('note', d.type)