

def test_uses_generator_defined_on_settings_for_custom_field(self):
    obj = mommy.make(CustomFieldWithGeneratorModel)
    self.assertEqual('value', obj.custom_value)

dataset/ETHPy150Open vandersonmota/model_mommy/test/generic/tests/test_filling_fields.py FillingCustomFields.test_uses_generator_defined_on_settings_for_custom_field/original