evennia.utils.verb_conjugation.tests¶
Unit tests for verb conjugation.
- class evennia.utils.verb_conjugation.tests.TestVerbConjugate(methodName='runTest')[source]¶
Bases:
TestCaseTest the conjugation.
- test_verb_infinitive = None¶
- test_verb_conjugate = None¶
- test_verb_present = None¶
- test_verb_present_participle = None¶
- test_verb_past = None¶
- test_verb_past_participle = None¶
- test_verb_tense = None¶
- test_verb_is_tense = None¶
- test_verb_is_present = None¶
- test_verb_is_present_participle = None¶
- test_verb_is_past = None¶
- test_verb_is_past_participle = None¶
- test_verb_actor_stance_components = None¶
- test_verb_actor_stance_components_00_have(**kw)¶
Test the tense-checker [with verb=’have’, expected=(‘have’, ‘has’)]
- test_verb_actor_stance_components_01_swimming(**kw)¶
Test the tense-checker [with verb=’swimming’, expected=(‘swimming’, ‘swimming’)]
- test_verb_actor_stance_components_02_give(**kw)¶
Test the tense-checker [with verb=’give’, expected=(‘give’, ‘gives’)]
- test_verb_actor_stance_components_03_given(**kw)¶
Test the tense-checker [with verb=’given’, expected=(‘given’, ‘given’)]
- test_verb_actor_stance_components_04_am(**kw)¶
Test the tense-checker [with verb=’am’, expected=(‘are’, ‘is’)]
- test_verb_actor_stance_components_05_doing(**kw)¶
Test the tense-checker [with verb=’doing’, expected=(‘doing’, ‘doing’)]
- test_verb_actor_stance_components_06_are(**kw)¶
Test the tense-checker [with verb=’are’, expected=(‘are’, ‘is’)]
- test_verb_actor_stance_components_07_had(**kw)¶
Test the tense-checker [with verb=’had’, expected=(‘had’, ‘had’)]
- test_verb_actor_stance_components_08_grin(**kw)¶
Test the tense-checker [with verb=’grin’, expected=(‘grin’, ‘grins’)]
- test_verb_actor_stance_components_09_smile(**kw)¶
Test the tense-checker [with verb=’smile’, expected=(‘smile’, ‘smiles’)]
- test_verb_actor_stance_components_10_vex(**kw)¶
Test the tense-checker [with verb=’vex’, expected=(‘vex’, ‘vexes’)]
- test_verb_actor_stance_components_11_thrust(**kw)¶
Test the tense-checker [with verb=’thrust’, expected=(‘thrust’, ‘thrusts’)]
- test_verb_conjugate_0_inf(**kw)¶
Test conjugation for different tenses [with tense=’inf’, verb=’have’, expected=’have’].
- test_verb_conjugate_1_inf(**kw)¶
Test conjugation for different tenses [with tense=’inf’, verb=’swim’, expected=’swim’].
- test_verb_conjugate_2_inf(**kw)¶
Test conjugation for different tenses [with tense=’inf’, verb=’give’, expected=’give’].
- test_verb_conjugate_3_inf(**kw)¶
Test conjugation for different tenses [with tense=’inf’, verb=’given’, expected=’give’].
- test_verb_conjugate_4_inf(**kw)¶
Test conjugation for different tenses [with tense=’inf’, verb=’am’, expected=’be’].
- test_verb_conjugate_5_inf(**kw)¶
Test conjugation for different tenses [with tense=’inf’, verb=’doing’, expected=’do’].
- test_verb_conjugate_6_inf(**kw)¶
Test conjugation for different tenses [with tense=’inf’, verb=’are’, expected=’be’].
- test_verb_conjugate_7_2sgpres(**kw)¶
Test conjugation for different tenses [with tense=’2sgpres’, verb=’am’, expected=’are’].
- test_verb_conjugate_8_3sgpres(**kw)¶
Test conjugation for different tenses [with tense=’3sgpres’, verb=’am’, expected=’is’].
- test_verb_infinitive_0_have(**kw)¶
Test the infinite-getter [with verb=’have’, expected=’have’].
- test_verb_infinitive_1_swim(**kw)¶
Test the infinite-getter [with verb=’swim’, expected=’swim’].
- test_verb_infinitive_2_give(**kw)¶
Test the infinite-getter [with verb=’give’, expected=’give’].
- test_verb_infinitive_3_given(**kw)¶
Test the infinite-getter [with verb=’given’, expected=’give’].
- test_verb_infinitive_4_am(**kw)¶
Test the infinite-getter [with verb=’am’, expected=’be’].
- test_verb_infinitive_5_doing(**kw)¶
Test the infinite-getter [with verb=’doing’, expected=’do’].
- test_verb_infinitive_6_are(**kw)¶
Test the infinite-getter [with verb=’are’, expected=’be’].
- test_verb_is_past_0_1st(**kw)¶
Test the tense-checker [with person=’1st’, verb=’have’, expected=False]
- test_verb_is_past_1_1st(**kw)¶
Test the tense-checker [with person=’1st’, verb=’swim’, expected=False]
- test_verb_is_past_2_1st(**kw)¶
Test the tense-checker [with person=’1st’, verb=’give’, expected=False]
- test_verb_is_past_3_1st(**kw)¶
Test the tense-checker [with person=’1st’, verb=’given’, expected=False]
- test_verb_is_past_4_1st(**kw)¶
Test the tense-checker [with person=’1st’, verb=’am’, expected=False]
- test_verb_is_past_5_1st(**kw)¶
Test the tense-checker [with person=’1st’, verb=’doing’, expected=False]
- test_verb_is_past_6_1st(**kw)¶
Test the tense-checker [with person=’1st’, verb=’are’, expected=False]
- test_verb_is_past_7_2nd(**kw)¶
Test the tense-checker [with person=’2nd’, verb=’were’, expected=True]
- test_verb_is_past_participle_0_have(**kw)¶
Test the tense-checker [with verb=’have’, expected=False]
- test_verb_is_past_participle_1_swimming(**kw)¶
Test the tense-checker [with verb=’swimming’, expected=False]
- test_verb_is_past_participle_2_give(**kw)¶
Test the tense-checker [with verb=’give’, expected=False]
- test_verb_is_past_participle_3_given(**kw)¶
Test the tense-checker [with verb=’given’, expected=True]
- test_verb_is_past_participle_4_am(**kw)¶
Test the tense-checker [with verb=’am’, expected=False]
- test_verb_is_past_participle_5_doing(**kw)¶
Test the tense-checker [with verb=’doing’, expected=False]
- test_verb_is_past_participle_6_are(**kw)¶
Test the tense-checker [with verb=’are’, expected=False]
- test_verb_is_past_participle_7_had(**kw)¶
Test the tense-checker [with verb=’had’, expected=False]
- test_verb_is_present_0_1st(**kw)¶
Test the tense-checker [with person=’1st’, verb=’have’, expected=False]
- test_verb_is_present_1_1st(**kw)¶
Test the tense-checker [with person=’1st’, verb=’swim’, expected=False]
- test_verb_is_present_2_1st(**kw)¶
Test the tense-checker [with person=’1st’, verb=’give’, expected=False]
- test_verb_is_present_3_1st(**kw)¶
Test the tense-checker [with person=’1st’, verb=’given’, expected=False]
- test_verb_is_present_4_1st(**kw)¶
Test the tense-checker [with person=’1st’, verb=’am’, expected=True]
- test_verb_is_present_5_1st(**kw)¶
Test the tense-checker [with person=’1st’, verb=’doing’, expected=False]
- test_verb_is_present_6_1st(**kw)¶
Test the tense-checker [with person=’1st’, verb=’are’, expected=False]
- test_verb_is_present_7_1st(**kw)¶
Test the tense-checker [with person=’1st’, verb=’had’, expected=False]
- test_verb_is_present_participle_0_have(**kw)¶
Test the tense-checker [with verb=’have’, expected=False]
- test_verb_is_present_participle_1_swim(**kw)¶
Test the tense-checker [with verb=’swim’, expected=False]
- test_verb_is_present_participle_2_give(**kw)¶
Test the tense-checker [with verb=’give’, expected=False]
- test_verb_is_present_participle_3_given(**kw)¶
Test the tense-checker [with verb=’given’, expected=False]
- test_verb_is_present_participle_4_am(**kw)¶
Test the tense-checker [with verb=’am’, expected=False]
- test_verb_is_present_participle_5_doing(**kw)¶
Test the tense-checker [with verb=’doing’, expected=True]
- test_verb_is_present_participle_6_are(**kw)¶
Test the tense-checker [with verb=’are’, expected=False]
- test_verb_is_tense_0_inf(**kw)¶
Test the tense-checker [with tense=’inf’, verb=’have’, expected=True]
- test_verb_is_tense_1_inf(**kw)¶
Test the tense-checker [with tense=’inf’, verb=’swim’, expected=True]
- test_verb_is_tense_2_inf(**kw)¶
Test the tense-checker [with tense=’inf’, verb=’give’, expected=True]
- test_verb_is_tense_3_inf(**kw)¶
Test the tense-checker [with tense=’inf’, verb=’given’, expected=False]
- test_verb_is_tense_4_inf(**kw)¶
Test the tense-checker [with tense=’inf’, verb=’am’, expected=False]
- test_verb_is_tense_5_inf(**kw)¶
Test the tense-checker [with tense=’inf’, verb=’doing’, expected=False]
- test_verb_is_tense_6_inf(**kw)¶
Test the tense-checker [with tense=’inf’, verb=’are’, expected=False]
- test_verb_past_0_1st(**kw)¶
Test the past getter [with person=’1st’, verb=’have’, expected=’had’].
- test_verb_past_1_1st(**kw)¶
Test the past getter [with person=’1st’, verb=’swim’, expected=’swam’].
- test_verb_past_2_1st(**kw)¶
Test the past getter [with person=’1st’, verb=’give’, expected=’gave’].
- test_verb_past_3_1st(**kw)¶
Test the past getter [with person=’1st’, verb=’given’, expected=’gave’].
- test_verb_past_4_1st(**kw)¶
Test the past getter [with person=’1st’, verb=’am’, expected=’was’].
- test_verb_past_5_1st(**kw)¶
Test the past getter [with person=’1st’, verb=’doing’, expected=’did’].
- test_verb_past_6_1st(**kw)¶
Test the past getter [with person=’1st’, verb=’are’, expected=’was’].
- test_verb_past_7_2nd(**kw)¶
Test the past getter [with person=’2nd’, verb=’were’, expected=’were’].
- test_verb_past_participle_0_have(**kw)¶
Test the past participle [with verb=’have’, expected=’had’].
- test_verb_past_participle_1_swim(**kw)¶
Test the past participle [with verb=’swim’, expected=’swum’].
- test_verb_past_participle_2_give(**kw)¶
Test the past participle [with verb=’give’, expected=’given’].
- test_verb_past_participle_3_given(**kw)¶
Test the past participle [with verb=’given’, expected=’given’].
- test_verb_past_participle_4_am(**kw)¶
Test the past participle [with verb=’am’, expected=’been’].
- test_verb_past_participle_5_doing(**kw)¶
Test the past participle [with verb=’doing’, expected=’done’].
- test_verb_past_participle_6_are(**kw)¶
Test the past participle [with verb=’are’, expected=’been’].
- test_verb_present_0_1st(**kw)¶
Test the present [with person=’1st’, verb=’have’, expected=’have’].
- test_verb_present_1_1st(**kw)¶
Test the present [with person=’1st’, verb=’swim’, expected=’swim’].
- test_verb_present_2_1st(**kw)¶
Test the present [with person=’1st’, verb=’give’, expected=’give’].
- test_verb_present_3_1st(**kw)¶
Test the present [with person=’1st’, verb=’given’, expected=’give’].
- test_verb_present_4_1st(**kw)¶
Test the present [with person=’1st’, verb=’am’, expected=’am’].
- test_verb_present_5_1st(**kw)¶
Test the present [with person=’1st’, verb=’doing’, expected=’do’].
- test_verb_present_6_1st(**kw)¶
Test the present [with person=’1st’, verb=’are’, expected=’am’].
- test_verb_present_7_2nd(**kw)¶
Test the present [with person=’2nd’, verb=’were’, expected=’are’].
- test_verb_present_8_3rd(**kw)¶
Test the present [with person=’3rd’, verb=’am’, expected=’is’].
- test_verb_present_participle_0_have(**kw)¶
Test the present_participle [with verb=’have’, expected=’having’]
- test_verb_present_participle_1_swim(**kw)¶
Test the present_participle [with verb=’swim’, expected=’swimming’]
- test_verb_present_participle_2_give(**kw)¶
Test the present_participle [with verb=’give’, expected=’giving’]
- test_verb_present_participle_3_given(**kw)¶
Test the present_participle [with verb=’given’, expected=’giving’]
- test_verb_present_participle_4_am(**kw)¶
Test the present_participle [with verb=’am’, expected=’being’]
- test_verb_present_participle_5_doing(**kw)¶
Test the present_participle [with verb=’doing’, expected=’doing’]
- test_verb_present_participle_6_are(**kw)¶
Test the present_participle [with verb=’are’, expected=’being’]
- test_verb_tense_0_have(**kw)¶
Test the tense retriever [with verb=’have’, expected=’infinitive’].
- test_verb_tense_1_swim(**kw)¶
Test the tense retriever [with verb=’swim’, expected=’infinitive’].
- test_verb_tense_2_give(**kw)¶
Test the tense retriever [with verb=’give’, expected=’infinitive’].
- test_verb_tense_3_given(**kw)¶
Test the tense retriever [with verb=’given’, expected=’past participle’].
- test_verb_tense_4_am(**kw)¶
Test the tense retriever [with verb=’am’, expected=’1st singular present’].
- test_verb_tense_5_doing(**kw)¶
Test the tense retriever [with verb=’doing’, expected=’present participle’].
- test_verb_tense_6_are(**kw)¶
Test the tense retriever [with verb=’are’, expected=’2nd singular present’].
- class evennia.utils.verb_conjugation.tests.TestPronounMapping(methodName='runTest')[source]¶
Bases:
TestCaseTest pronoun viewpoint mapping
- test_default_mapping = None¶
- test_mapping_with_options = None¶
- test_colloquial_plurals = None¶
- test_colloquial_plurals_0_you(**kw)¶
The use of this module by the funcparser expects a default person-pronoun [with pronoun=’you’, options=’p’, expected_1st_or_2nd_person=’you’, expected_3rd_person=’they’] of the neutral “they”, which is categorized here by the plural.
- test_colloquial_plurals_1_I(**kw)¶
The use of this module by the funcparser expects a default person-pronoun [with pronoun=’I’, options=’p’, expected_1st_or_2nd_person=’I’, expected_3rd_person=’they’] of the neutral “they”, which is categorized here by the plural.
- test_colloquial_plurals_2_Me(**kw)¶
The use of this module by the funcparser expects a default person-pronoun [with pronoun=’Me’, options=’p’, expected_1st_or_2nd_person=’Me’, expected_3rd_person=’Them’] of the neutral “they”, which is categorized here by the plural.
- test_colloquial_plurals_3_your(**kw)¶
The use of this module by the funcparser expects a default person-pronoun [with pronoun=’your’, options=’p’, expected_1st_or_2nd_person=’your’, expected_3rd_person=’their’] of the neutral “they”, which is categorized here by the plural.
- test_colloquial_plurals_4_they(**kw)¶
The use of this module by the funcparser expects a default person-pronoun [with pronoun=’they’, options=’1 p’, expected_1st_or_2nd_person=’we’, expected_3rd_person=’they’] of the neutral “they”, which is categorized here by the plural.
- test_colloquial_plurals_5_they(**kw)¶
The use of this module by the funcparser expects a default person-pronoun [with pronoun=’they’, options=’’, expected_1st_or_2nd_person=’you’, expected_3rd_person=’they’] of the neutral “they”, which is categorized here by the plural.
- test_colloquial_plurals_6_yourself(**kw)¶
The use of this module by the funcparser expects a default person-pronoun [with pronoun=’yourself’, options=’p’, expected_1st_or_2nd_person=’yourself’, expected_3rd_person=’themselves’] of the neutral “they”, which is categorized here by the plural.
- test_colloquial_plurals_7_myself(**kw)¶
The use of this module by the funcparser expects a default person-pronoun [with pronoun=’myself’, options=’p’, expected_1st_or_2nd_person=’myself’, expected_3rd_person=’themselves’] of the neutral “they”, which is categorized here by the plural.
- test_default_mapping_00_you(**kw)¶
Test the pronoun mapper [with pronoun=’you’, expected_1st_or_2nd_person=’you’, expected_3rd_person=’it’].
- test_default_mapping_01_I(**kw)¶
Test the pronoun mapper [with pronoun=’I’, expected_1st_or_2nd_person=’I’, expected_3rd_person=’it’].
- test_default_mapping_02_Me(**kw)¶
Test the pronoun mapper [with pronoun=’Me’, expected_1st_or_2nd_person=’Me’, expected_3rd_person=’It’].
- test_default_mapping_03_ours(**kw)¶
Test the pronoun mapper [with pronoun=’ours’, expected_1st_or_2nd_person=’ours’, expected_3rd_person=’theirs’].
- test_default_mapping_04_yourself(**kw)¶
Test the pronoun mapper [with pronoun=’yourself’, expected_1st_or_2nd_person=’yourself’, expected_3rd_person=’itself’].
- test_default_mapping_05_yourselves(**kw)¶
Test the pronoun mapper [with pronoun=’yourselves’, expected_1st_or_2nd_person=’yourselves’, expected_3rd_person=’themselves’].
- test_default_mapping_06_he(**kw)¶
Test the pronoun mapper [with pronoun=’he’, expected_1st_or_2nd_person=’you’, expected_3rd_person=’he’].
- test_default_mapping_07_her(**kw)¶
Test the pronoun mapper [with pronoun=’her’, expected_1st_or_2nd_person=’you’, expected_3rd_person=’her’].
- test_default_mapping_08_their(**kw)¶
Test the pronoun mapper [with pronoun=’their’, expected_1st_or_2nd_person=’your’, expected_3rd_person=’their’].
- test_default_mapping_09_itself(**kw)¶
Test the pronoun mapper [with pronoun=’itself’, expected_1st_or_2nd_person=’yourself’, expected_3rd_person=’itself’].
- test_default_mapping_10_herself(**kw)¶
Test the pronoun mapper [with pronoun=’herself’, expected_1st_or_2nd_person=’yourself’, expected_3rd_person=’herself’].
- test_default_mapping_11_themselves(**kw)¶
Test the pronoun mapper [with pronoun=’themselves’, expected_1st_or_2nd_person=’yourselves’, expected_3rd_person=’themselves’].
- test_mapping_with_options_00_you(**kw)¶
Test the pronoun mapper [with pronoun=’you’, options=’m’, expected_1st_or_2nd_person=’you’, expected_3rd_person=’he’].
- test_mapping_with_options_01_you(**kw)¶
Test the pronoun mapper [with pronoun=’you’, options=’f op’, expected_1st_or_2nd_person=’you’, expected_3rd_person=’her’].
- test_mapping_with_options_02_you(**kw)¶
Test the pronoun mapper [with pronoun=’you’, options=’p op’, expected_1st_or_2nd_person=’you’, expected_3rd_person=’them’].
- test_mapping_with_options_03_I(**kw)¶
Test the pronoun mapper [with pronoun=’I’, options=’m’, expected_1st_or_2nd_person=’I’, expected_3rd_person=’he’].
- test_mapping_with_options_04_Me(**kw)¶
Test the pronoun mapper [with pronoun=’Me’, options=’n’, expected_1st_or_2nd_person=’Me’, expected_3rd_person=’It’].
- test_mapping_with_options_05_your(**kw)¶
Test the pronoun mapper [with pronoun=’your’, options=’p’, expected_1st_or_2nd_person=’your’, expected_3rd_person=’their’].
- test_mapping_with_options_06_yourself(**kw)¶
Test the pronoun mapper [with pronoun=’yourself’, options=’m’, expected_1st_or_2nd_person=’yourself’, expected_3rd_person=’himself’].
- test_mapping_with_options_07_yourself(**kw)¶
Test the pronoun mapper [with pronoun=’yourself’, options=’f’, expected_1st_or_2nd_person=’yourself’, expected_3rd_person=’herself’].
- test_mapping_with_options_08_yourselves(**kw)¶
Test the pronoun mapper [with pronoun=’yourselves’, options=’’, expected_1st_or_2nd_person=’yourselves’, expected_3rd_person=’themselves’].
- test_mapping_with_options_09_he(**kw)¶
Test the pronoun mapper [with pronoun=’he’, options=’1’, expected_1st_or_2nd_person=’I’, expected_3rd_person=’he’].
- test_mapping_with_options_10_he(**kw)¶
Test the pronoun mapper [with pronoun=’he’, options=’1 p’, expected_1st_or_2nd_person=’we’, expected_3rd_person=’he’].
- test_mapping_with_options_11_we(**kw)¶
Test the pronoun mapper [with pronoun=’we’, options=’m’, expected_1st_or_2nd_person=’we’, expected_3rd_person=’he’].
- test_mapping_with_options_12_her(**kw)¶
Test the pronoun mapper [with pronoun=’her’, options=’p’, expected_1st_or_2nd_person=’you’, expected_3rd_person=’her’].
- test_mapping_with_options_13_her(**kw)¶
Test the pronoun mapper [with pronoun=’her’, options=’pa’, expected_1st_or_2nd_person=’your’, expected_3rd_person=’her’].
- test_mapping_with_options_14_their(**kw)¶
Test the pronoun mapper [with pronoun=’their’, options=’ma’, expected_1st_or_2nd_person=’your’, expected_3rd_person=’their’].