示例#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)
示例#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)
示例#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)
示例#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)