Esempio n. 1
0
    def test_lang_line_propogation(self):

        # Get the language line...
        lang_line = retrieve_normal_lines(self.inst, ODIN_LANG_TAG)[0]
        lang_line.attributes[ODIN_JUDGMENT_ATTRIBUTE] = '*'

        phrase_item = generate_lang_phrase_tier(self.inst)[0]

        self.assertEqual(phrase_item.attributes.get(ODIN_JUDGMENT_ATTRIBUTE), '*')
Esempio n. 2
0
    def test_trans_line_propogation(self):
        trans_line = retrieve_normal_lines(self.inst, ODIN_TRANS_TAG)[0]
        trans_line.attributes[ODIN_JUDGMENT_ATTRIBUTE] = '*'

        phrase_item = generate_trans_phrase_tier(self.inst)[0]
        self.assertEqual(phrase_item.attributes.get(ODIN_JUDGMENT_ATTRIBUTE), '*')