python/tests: turn GraphError into failure inside of test_verify()