Ejemplo n.º 1
0
 def testGetForCurrentUserIdNonMatching(self):
     """Test that None is returned when the current user is not registered.
 """
     entity = user_logic._getForCurrentUserId()
     self.failUnlessEqual(entity, None)
Ejemplo n.º 2
0
 def testGetForCurrentUserIdNonMatching(self):
   """Test that None is returned when the current user is not registered.
   """
   entity = user_logic._getForCurrentUserId()
   self.failUnlessEqual(entity, None)
Ejemplo n.º 3
0
 def testGetForCurrentUserId(self):
     """Test that entity of the current user can be retrieved through user id.
 """
     current_user = self.createCurrentUser()
     entity = user_logic._getForCurrentUserId()
     self._compareUsers(current_user, entity)
Ejemplo n.º 4
0
 def testGetForCurrentUserId(self):
   """Test that entity of the current user can be retrieved through user id.
   """
   current_user = self.createCurrentUser()
   entity = user_logic._getForCurrentUserId()
   self._compareUsers(current_user, entity)