~townsend/autopilot/fix-gcalctool-desktop-file

« back to all changes in this revision

Viewing changes to autopilot/tests/unit/test_content.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:
98
98
        with NamedTemporaryFile() as f:
99
99
            os.chmod(f.name, 0)
100
100
 
101
 
            with patch('autopilot.content.logger') as fake_logger:
 
101
            with patch('autopilot.content._logger') as fake_logger:
102
102
                follow_file(f.name, fake_test, content_name)
103
103
                fake_logger.error.assert_called_once_with(
104
104
                    "Could not add content object '%s' due to IO Error: %s",