def METHOD_NAME(self):
    schema = openmediavault.json.Schema({})
    self.assertRaises(
        openmediavault.json.SchemaValidationException,
        lambda: schema._check_format(
            "myvault.local", {"format": "host-name"}, "field3"
        ),
    )