def METHOD_NAME(self):
    # Validate min_value enforcement
    data = {"var1": 4}
    form = IntegerVarJob().as_form(data)
    self.assertFalse(form.is_valid())
    self.assertIn("var1", form.errors)
    # Validate max_value enforcement
    data = {"var1": 11}
    form = IntegerVarJob().as_form(data)
    self.assertFalse(form.is_valid())
    self.assertIn("var1", form.errors)
    # Validate valid data
    data = {"var1": 7}
    form = IntegerVarJob().as_form(data)
    self.assertTrue(form.is_valid())
    self.assertEqual(form.cleaned_data["var1"], data["var1"])