def test_get_by_path_2(self): schema = self._get_schema() self.assertEqual( schema.get_by_path("ntp.enable"), { "type": "boolean", "default": False } )
def test_get_by_path_fail(self): schema = self._get_schema() self.assertRaises(openmediavault.json.SchemaPathException, lambda: schema.get_by_path("a.b.c"))
def test_get_by_path_1(self): schema = self._get_schema() self.assertIsInstance(schema.get_by_path("price"), dict)
def test_get_by_path_2(self): schema = self._get_schema() self.assertEqual(schema.get_by_path( "ntp.enable"), { "type": "boolean", "default": False })
def test_get_by_path_1(self): schema = self._get_schema() schema.get_by_path("price")