def test_run(self): BrickStore.graph = brickschema.Graph() result = subject.add_brick( "http://example.org/digitaltwin#", "https://brickschema.org/schema/Brick#Equipment") subject.remove_brick(result) assert not list(BrickStore.graph.triples((URIRef(result), None, None)))
def test_run(self): BrickStore.graph = brickschema.Graph() result = subject.add_brick( "https://example.org/digitaltwin#", "https://brickschema.org/schema/Brick#Equipment") assert "https://example.org/digitaltwin#" in result assert list( BrickStore.graph.triples( (URIRef(result), RDF.type, URIRef("https://brickschema.org/schema/Brick#Equipment")))) assert list( BrickStore.graph.triples( (URIRef(result), URIRef("http://www.w3.org/2000/01/rdf-schema#label"), Literal("Unnamed"))))