예제 #1
0
 def testGetForUserIdNonMatching(self):
     """Test that non matching returns None.
 """
     user_id = "not_a_user"
     entity = user_logic.getForUserId(user_id)
     self.failUnlessEqual(entity, None)
예제 #2
0
 def testGetForUserIdNonMatching(self):
   """Test that non matching returns None.
   """
   user_id = "not_a_user"
   entity = user_logic.getForUserId(user_id)
   self.failUnlessEqual(entity, None)
예제 #3
0
 def testGetForUserId(self):
     """Test that entity can be retrieved through user id.
 """
     user_id = self.entity.user_id
     entity = user_logic.getForUserId(user_id)
     self._compareUsers(self.entity, entity)
예제 #4
0
 def testGetForUserId(self):
   """Test that entity can be retrieved through user id.
   """
   user_id = self.entity.user_id
   entity = user_logic.getForUserId(user_id)
   self._compareUsers(self.entity, entity)