def setUp(self):
     self.g = graph_db_path()
     ParentOf.register(self.g)
     User.register(self.g)
     Knows.register(self.g)
     Unknown.register(self.g)
     Dog.register(self.g)
     self.g.add_proxy('knows', Knows)
     user1_id = hashlib.sha224("10user1").hexdigest()
     user2_id = hashlib.sha224("10user2").hexdigest()
     self.user = self.g.user.create(model_id=user1_id, username='******', age=10)
     self.known_user = self.g.user.create(model_id=user2_id, username='******', age=10)
 def setUp(self):
     self.g = graph_db_path()
     User.register(self.g)
 def setUp(self):
     self.g = graph_db_path()
     self.g.add_proxy('knows', Knows)
     self.g.add_proxy('user', User)
     user_id = hashlib.sha224('10user1').hexdigest()
     self.user = self.g.user.create(model_id=user_id, username='******', age=10)