def test_init(self): # Arrange schema = { "id": "http://schema1", "name": "TestSchema", "description": "Unit testing schema", "properties": { "prop1": { "type": "string", "description": "prop1 description", }, "prop2": { "type": "string", "description": "prop2 description", }, }, "patternProperties": { "prop?": { "type": "string", "description": "pattern prop", }, }, } cache = {schema["id"]: schema} # Act obj = SchemasLoader(cache=cache) schema_get = obj.get(schema["id"]) # Assert self.assertTrue(isinstance(obj, SchemasLoader)) self.assertEqual(schema_get, schema)