Exemplo n.º 1
0
 def test_kana(self):
     PronunciationOfKanamoji.insert_pronunciations(self.db)
     Kana.insert_kanas(self.db)
     with self.db.session as session:
         kana = Kana.query(session).filter_by(romaji='a').first()
         self.assertTrue(kana.hiragana == 'あ')
         character = PronunciationOfKanamoji.query(session) \
             .filter_by(id=kana.pronunciation_id) \
             .first().character
         self.assertTrue(character == 'Seion')
Exemplo n.º 2
0
 def test_pronun(self):
     PronunciationOfKanamoji.insert_pronunciations(self.db)
     with self.db.session as session:
         pronun = PronunciationOfKanamoji.query(session) \
             .filter_by(character='Seion').first()
     self.assertTrue(pronun is not None)