def test_flags_not_required(self):
        f = models.Field(type=int, required=False)
        self.assertEqual(f.flags, ['int', 'not required'])
Test if a proposed stock consumption is permitted
dataset/ETHPy150Open ansible/tower-cli/tests/test_models_fields.py/FieldTests.test_flags_not_required--crossover with--dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/partner/abstract_models.py/AbstractStockRecord.is_allocation_consumption_possible