Esempio n. 1
0
 def testGetForCurrentAccountNonExistent(self):
     """Test that None is returned when the current user is not registered.
 """
     entity = user_logic._getForCurrentAccount()
     self.failUnlessEqual(entity, None)
Esempio n. 2
0
 def testGetForCurrentAccountNonExistent(self):
   """Test that None is returned when the current user is not registered.
   """
   entity = user_logic._getForCurrentAccount()
   self.failUnlessEqual(entity, None)
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)