Exemple #1
0
 def test_get_all_meanings_same_meaning(self):
     name = NameDefinition(name="name1",
                           gender=Gender.boy,
                           meaning="meaning1",
                           origin=Region.United_States)
     name.add_meaning("meaning1", origin=Region.United_Kingdom)
     assert name.get_all_meanings() == ["meaning1"]
Exemple #2
0
 def test_get_all_meanings_different_meanings(self):
     name = NameDefinition(name="name1",
                           gender=Gender.boy,
                           meaning="meaning1",
                           origin=Region.United_States)
     name.add_meaning("meaning1", origin=Region.United_Kingdom)
     name.add_meaning("meaning2", origin=Region.India)
     name.add_meaning("meaning2", origin=Region.Tamil)
     assert name.get_all_meanings() == ["meaning1", "meaning2"]