def testGetForUserIdNonMatching(self): """Test that non matching returns None. """ user_id = "not_a_user" entity = user_logic.getForUserId(user_id) self.failUnlessEqual(entity, None)
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)