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