Example #1
0
 def test_interaction(self):
     # The WorkingBase.interaction context manager will begin an
     # interaction on entry and end it on exit.
     base = WorkingBase()
     base.init(self.email, transaction.manager, self.logger)
     endInteraction()
     self.assertIs(None, queryInteraction())
     with base.interaction:
         self.assertIsNot(None, queryInteraction())
     self.assertIs(None, queryInteraction())
Example #2
0
 def test_interaction(self):
     # The WorkingBase.interaction context manager will begin an
     # interaction on entry and end it on exit.
     base = WorkingBase()
     base.init(self.email, transaction.manager, self.logger)
     endInteraction()
     self.assertIs(None, queryInteraction())
     with base.interaction:
         self.assertIsNot(None, queryInteraction())
     self.assertIs(None, queryInteraction())
Example #3
0
 def test_interaction_nested(self):
     # If an interaction is already in progress, the interaction
     # context manager will not begin a new interaction on entry,
     # nor will it end the interaction on exit.
     base = WorkingBase()
     base.init(self.email, transaction.manager, self.logger)
     endInteraction()
     self.assertIs(None, queryInteraction())
     with base.interaction:
         self.assertIsNot(None, queryInteraction())
         with base.interaction:
             self.assertIsNot(None, queryInteraction())
         self.assertIsNot(None, queryInteraction())
     self.assertIs(None, queryInteraction())
Example #4
0
 def test_interaction_nested(self):
     # If an interaction is already in progress, the interaction
     # context manager will not begin a new interaction on entry,
     # nor will it end the interaction on exit.
     base = WorkingBase()
     base.init(self.email, transaction.manager, self.logger)
     endInteraction()
     self.assertIs(None, queryInteraction())
     with base.interaction:
         self.assertIsNot(None, queryInteraction())
         with base.interaction:
             self.assertIsNot(None, queryInteraction())
         self.assertIsNot(None, queryInteraction())
     self.assertIs(None, queryInteraction())
 def _logout(self):
     """Removed the Launchpad Janitor interaction."""
     endInteraction()
Example #6
0
 def _logout(self):
     """End the bug janitor interaction."""
     endInteraction()
Example #7
0
 def _logout(self):
     """End the bug janitor interaction."""
     endInteraction()
Example #8
0
 def _logout(self):
     """Removed the Launchpad Janitor interaction."""
     endInteraction()