def test_boolean_config_validation(self):
        class TestConf(schema.Schema):
            item = schema.BooleanItem(title="Hungry", description="Are you hungry?")

        try:
            jsonschema.validate({"item": False}, TestConf.serialize())
        except jsonschema.exceptions.ValidationError as exc:
            self.fail("ValidationError raised: {}".format(exc))

        with self.assertRaises(jsonschema.exceptions.ValidationError) as excinfo:
            jsonschema.validate({"item": 1}, TestConf.serialize())
        self.assertIn("is not of type", excinfo.exception.message)