~laney/autopilot/legacy-psutil-children

« back to all changes in this revision

Viewing changes to autopilot/tests/unit/test_introspection_features.py

  • Committer: CI bot
  • Author(s): Thomi Richards, Max Brustkern
  • Date: 2014-04-08 00:29:44 UTC
  • mfrom: (459.6.5 logger-privatization)
  • Revision ID: ps-jenkins@lists.canonical.com-20140408002944-hkq216cwlrrbg3k7
Make logger objects within autopilot private. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
207
207
        with fake_object.no_automatic_refreshing():
208
208
            self.assertThat(fake_object.path, Equals('/some/path'))
209
209
 
210
 
    @patch('autopilot.introspection.dbus.logger')
 
210
    @patch('autopilot.introspection.dbus._logger')
211
211
    def test_large_query_returns_log_warnings(self, mock_logger):
212
212
        """Queries that return large numbers of items must cause a log warning.
213
213
 
230
230
            "some_query",
231
231
            16)
232
232
 
233
 
    @patch('autopilot.introspection.dbus.logger')
 
233
    @patch('autopilot.introspection.dbus._logger')
234
234
    def test_small_query_returns_dont_log_warnings(self, mock_logger):
235
235
        """Queries that return small numbers of items must not log a warning.
236
236