'Discount Code Validate Quantity - Tests if validation works on values stored in db and not given in \'data\'
:return:'

def test_quantity_db_populate(self):

    with app.test_request_context():
        schema = DiscountCodeSchemaTicket()
        obj = DiscountCodeFactory()
        db.session.add(obj)
        db.session.commit()
        original_data = {'data': {'id': 1}}
        data = {}
        DiscountCodeSchemaTicket.validate_quantity(schema, data, original_data)
