

def test_filling_AutoField(self):
    obj = mommy.make(DummyEmptyModel)
    field = DummyEmptyModel._meta.get_field('id')
    self.assertIsInstance(field, AutoField)
    self.assertIsInstance(obj.id, int)

dataset/ETHPy150Open vandersonmota/model_mommy/test/generic/tests/test_filling_fields.py FillingAutoFields.test_filling_AutoField/original