Пример #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)
Пример #2
0
 def testDictToNodeWithNote(self):
     d = dict_to_note(Note('A note.', 'note'))
     self.assertEqual('A note.', d.note)
     self.assertEqual('note', d.type)
Пример #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)
Пример #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)