<s> """<STR_LIT>""" <EOL> import term <EOL> import unittest <EOL> class KnownValues ( unittest . TestCase ) : <EOL> knownValues = ( <EOL> ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , "<STR_LIT>" , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:n>' , "<STR_LIT>" , <EOL> "<STR_LIT>" ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:n>' , "<STR_LIT>" , <EOL> "<STR_LIT>" ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , "<STR_LIT>" , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , "<STR_LIT>" , "<STR_LIT>" ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , "<STR_LIT>" , "<STR_LIT>" ) , <EOL> ) <EOL> def testTermKnownValuesWikiWrapAsExample ( self ) : <EOL> """<STR_LIT>""" <EOL> for wikilang , pos , termlang , thisterm , termgender , asexample , forlist in self . knownValues : <EOL> if pos == '<STR_LIT>' : <EOL> aterm = term . Noun ( termlang , thisterm , gender = termgender ) <EOL> if pos == '<STR_LIT>' : <EOL> aterm = term . Verb ( termlang , thisterm ) <EOL> result = aterm . wikiWrapAsExample ( wikilang ) <EOL> self . assertEqual ( asexample , result ) <EOL> def testTermKnownValuesWikiWrapForList ( self ) : <EOL> """<STR_LIT>""" <EOL> for wikilang , pos , termlang , thisterm , termgender , asexample , forlist in self . knownValues : <EOL> if pos == '<STR_LIT>' : <EOL> aterm = term . Noun ( termlang , thisterm , gender = termgender ) <EOL> if pos == '<STR_LIT>' : <EOL> aterm = term . Verb ( termlang , thisterm ) <EOL> result = aterm . wikiWrapForList ( wikilang ) <EOL> self . assertEqual ( forlist , result ) <EOL> def testTermKnownValuesWikiWrapAsTranslation ( self ) : <EOL> """<STR_LIT>""" <EOL> for wikilang , pos , termlang , thisterm , termgender , asexample , forlist in self . knownValues : <EOL> if pos == '<STR_LIT>' : <EOL> aterm = term . Noun ( termlang , thisterm , gender = termgender ) <EOL> if pos == '<STR_LIT>' : <EOL> aterm = term . Verb ( termlang , thisterm ) <EOL> result = aterm . wikiWrapAsTranslation ( wikilang ) <EOL> self . assertEqual ( forlist , result ) <EOL> knownParserValues = ( <EOL> ( "<STR_LIT>" , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <NUM_LIT:1> ) , <EOL> ( "<STR_LIT>" , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:n>' , <NUM_LIT:1> ) , <EOL> ( "<STR_LIT>" , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:n>' , <NUM_LIT:1> ) , <EOL> ( "<STR_LIT>" , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:n>' , <NUM_LIT:2> ) , <EOL> ( "<STR_LIT>" , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:n>' , <NUM_LIT:2> ) , <EOL> ( "<STR_LIT>" , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <NUM_LIT:1> ) , <EOL> ) <EOL> def testParser ( self ) : <EOL> '''<STR_LIT>''' <EOL> for wikiline , termlang , thisterm , termgender , termnumber in self . knownParserValues : <EOL> aterm = term . Term ( termlang , '<STR_LIT>' , wikiline = wikiline ) <EOL> self . assertEqual ( aterm . getTerm ( ) , thisterm ) <EOL> self . assertEqual ( aterm . getGender ( ) , termgender ) <EOL> self . assertEqual ( aterm . getNumber ( ) , termnumber ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> unittest . main ( ) </s>
