

def test_filling_DecimalField_with_random_decimal(self):
    self.dummy_decimal_model = mommy.make(DummyDecimalModel)
    decimal_field = DummyDecimalModel._meta.get_field('decimal_field')
    self.assertIsInstance(decimal_field, DecimalField)
    self.assertIsInstance(self.dummy_decimal_model.decimal_field, Decimal)

dataset/ETHPy150Open vandersonmota/model_mommy/test/generic/tests/test_filling_fields.py FillingOthersNumericFields.test_filling_DecimalField_with_random_decimal/original