evennia.contrib.utils.name_generator.tests¶
Tests for the Random Name Generator
- class evennia.contrib.utils.name_generator.tests.TestNameGenerator(methodName='runTest')[source]¶
Bases:
BaseEvenniaTest- test_fantasy_name()[source]¶
Verify output types and lengths.
fantasy_name() - str fantasy_name(style=”fluid”) - str fantasy_name(num=3) - list of length 3 fantasy_name(return_list=True) - list of length 1
raises KeyError on missing style or ValueError on num
- test_structure_validation()[source]¶
Verify that validation raises the correct errors for invalid inputs.
- test_first_name()[source]¶
Verify output types and lengths.
first_name() - str first_name(num=3) - list of length 3 first_name(gender=’f’) - str first_name(return_list=True) - list of length 1