class TestDelete(object): @pytest.fixture(autouse=True) def setup(self, graph): self.graph = graph self.store = Store(self.graph) def test_can_delete_object(self): alice = Person("*****@*****.**", "Alice", 34) self.store.save_unique("People", "email", "*****@*****.**", alice) node = alice.__node__ assert node.exists self.store.delete(alice) assert not node.exists