def test_save_delete(): """Basic sanity check for NodeModel save and delete. """ from neo4jrestclient.client import NotFoundError pete = Person(name='Pete') pete.save() node_id = pete.id pete.delete() try: gdb.nodes.get(node_id) except NotFoundError: pass else: assert False, 'Pete was not properly deleted.'
def try_int(integer): node = Person(name="SandraInt", age=integer) node.save() assert node.age == integer node.delete()