def testGetForCurrentUserIdNonMatching(self): """Test that None is returned when the current user is not registered. """ entity = user_logic._getForCurrentUserId() self.failUnlessEqual(entity, None)
def testGetForCurrentUserIdNonMatching(self): """Test that None is returned when the current user is not registered. """ entity = user_logic._getForCurrentUserId() self.failUnlessEqual(entity, None)
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)
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)