Esempio n. 1
0
 def testStatsUpload(self, upload_count=1, return_value=0):
   """Test stats uploading."""
   return_value = cros.main(['chrome-sdk', '--board', 'lumpy'])
   # pylint: disable=protected-access
   self.assertEquals(stats.StatsUploader._Upload.call_count, upload_count)
   # pylint: enable=protected-access
   self.assertEquals(return_value, return_value)
Esempio n. 2
0
 def testStatsUpload(self, upload_count=1, return_value=0):
     """Test stats uploading."""
     return_value = cros.main(['chrome-sdk', '--board', 'lumpy'])
     # pylint: disable=protected-access
     self.assertEquals(stats.StatsUploader._Upload.call_count, upload_count)
     # pylint: enable=protected-access
     self.assertEquals(return_value, return_value)
Esempio n. 3
0
 def testStatsUpload(self, upload_count=1, return_value=0):
   """Test stats uploading."""
   return_value = cros.main(['chrome-sdk', '--board', 'lumpy'])
   self.assertEquals(stats.StatsUploader._Upload.call_count, upload_count)
   self.assertEquals(return_value, return_value)
Esempio n. 4
0
 def testStatsUpload(self, upload_count=1, return_value=0):
     """Test stats uploading."""
     return_value = cros.main(['chrome-sdk', '--board', 'lumpy'])
     self.assertEquals(stats.StatsUploader._Upload.call_count, upload_count)
     self.assertEquals(return_value, return_value)