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)
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)