

def test_if_oppucation_populated_from_choices(self):
    from test.generic.models import OCCUPATION_CHOCIES
    occupations = [item[0] for list in OCCUPATION_CHOCIES for item in list[1]]
    self.assertTrue((self.person.occupation in occupations))

dataset/ETHPy150Open vandersonmota/model_mommy/test/generic/tests/test_filling_fields.py FillingFromChoice.test_if_oppucation_populated_from_choices/original