def test_check_items_1(self):
     schema = openmediavault.json.Schema({})
     schema._check_items(
         ["192.168.10.101"],
         {
             "type": "array",
             "items": {
                 "type": "string",
                 "format": "ipv4"
             }
         },
         "foo",
     )
 def test_check_items_3(self):
     schema = openmediavault.json.Schema({})
     self.assertRaises(
         openmediavault.json.SchemaValidationException,
         lambda: schema._check_items(
             [10, "192.168.10.101"],
             {
                 "type":
                 "array",
                 "items": [
                     {
                         "type": "string",
                         "format": "ipv4"
                     },
                     {
                         "type": "string",
                         "format": "ipv6"
                     },
                 ],
             },
             "bar",
         ),
     )