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)
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)