Esempio n. 1
0
 def test_find_by_id(self):
     user = users.User('*****@*****.**')    
     creator = Creator(user = user)
     creator.put()
     creator.user_id = '4545'
     creator.put()
     creator_from_db = Creator.find_by_id('4545')
     self.assertEqual(creator_from_db.name,creator.name)
Esempio n. 2
0
 def test_creator_url(self):
     user = users.User('*****@*****.**')    
     creator = Creator(user = user)
     creator.put()
     creator.user_id = '4545'
     self.assertEqual(creator.url,'/users/'+creator.user_id)