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

« back to all changes in this revision

Viewing changes to autopilot/tests/unit/test_input.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:
89
89
            raises(expected_exception)
90
90
        )
91
91
 
92
 
    @patch('autopilot.input._common.logger')
 
92
    @patch('autopilot.input._common._logger')
93
93
    def test_get_center_point_logs_with_globalRect(self, mock_logger):
94
94
        obj = make_fake_object(globalRect=True)
95
95
        x, y = get_center_point(obj)
105
105
        self.assertEqual(123, x)
106
106
        self.assertEqual(345, y)
107
107
 
108
 
    @patch('autopilot.input._common.logger')
 
108
    @patch('autopilot.input._common._logger')
109
109
    def test_get_center_point_logs_with_center_points(self, mock_logger):
110
110
        obj = make_fake_object(center=True)
111
111
        x, y = get_center_point(obj)
121
121
        self.assertEqual(110, x)
122
122
        self.assertEqual(120, y)
123
123
 
124
 
    @patch('autopilot.input._common.logger')
 
124
    @patch('autopilot.input._common._logger')
125
125
    def test_get_center_point_logs_with_xywh(self, mock_logger):
126
126
        obj = make_fake_object(xywh=True)
127
127
        x, y = get_center_point(obj)