コード例 #1
0
ファイル: chrome_api_test.py プロジェクト: waltermeyer/loaner
 def setUp(self):
   super(ChromeEndpointsTest, self).setUp()
   self.patcher_directory = mock.patch('__main__.directory.DirectoryApiClient')
   self.mock_directoryclass = self.patcher_directory.start()
   self.mock_directoryclient = self.mock_directoryclass.return_value
   self.addCleanup(self.patcher_directory.stop)
   self.service = chrome_api.ChromeApi()
   self.login_endpoints_user()
   self.chrome_request = chrome_message.HeartbeatRequest(device_id=UNIQUE_ID)
コード例 #2
0
ファイル: chrome_api_test.py プロジェクト: thegwynne/loaner
 def setUp(self):
     super(ChromeEndpointsTest, self).setUp()
     self.patcher_directory = mock.patch(
         '__main__.directory.DirectoryApiClient')
     self.mock_directoryclass = self.patcher_directory.start()
     self.mock_directoryclient = self.mock_directoryclass.return_value
     self.addCleanup(self.patcher_directory.stop)
     self.service = chrome_api.ChromeApi()
     self.login_endpoints_user()
     self.chrome_request = chrome_messages.HeartbeatRequest(
         device_id=UNIQUE_ID)
     config_model.Config(id='silent_onboarding', bool_value=False).put()
コード例 #3
0
ファイル: chrome_api_test.py プロジェクト: winnie-lam/loaner
 def setUp(self):
     super(ChromeEndpointsTest, self).setUp()
     self.patcher_directory = mock.patch(
         '__main__.directory.DirectoryApiClient')
     self.mock_directoryclass = self.patcher_directory.start()
     self.mock_directoryclient = self.mock_directoryclass.return_value
     self.addCleanup(self.patcher_directory.stop)
     self.service = chrome_api.ChromeApi()
     self.login_endpoints_user()
     self.chrome_request = chrome_messages.HeartbeatRequest(
         device_id=UNIQUE_ID)
     config_model.Config(id='silent_onboarding', bool_value=False).put()
     # Set bootstrap to completed so that maintenance mode will not be invoked.
     config_model.Config.set('bootstrap_completed', True)