def testGetForCurrentAccountNonExistent(self): """Test that None is returned when the current user is not registered. """ entity = user_logic._getForCurrentAccount() self.failUnlessEqual(entity, None)
def testGetForCurrentAccount(self): """Test that the entity of current user can be retrieved through account. """ current_user = self.createCurrentUser() entity = user_logic._getForCurrentAccount() self._compareUsers(current_user, entity)