summaryrefslogtreecommitdiff
path: root/scripts/update_payload/checker_unittest.py
diff options
context:
space:
mode:
authorGilad Arnold <garnold@chromium.org>2015-02-05 13:23:55 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-02-06 05:20:19 +0000
commitf583a7d7c5255ec0e2321db60b7690c25e58c290 (patch)
tree33ebd71e52df77075cfcc7a91dbd7fb9bef0e9ed /scripts/update_payload/checker_unittest.py
parenta7aa0bcfa25b0d303447482980eca0973d4e939a (diff)
paycheck: Fix format compliance errors.
BUG=None TEST=None Change-Id: I2d810bae961387a63495ba5bbe85b7222b5f86ef Reviewed-on: https://chromium-review.googlesource.com/246672 Commit-Queue: Gilad Arnold <garnold@chromium.org> Tested-by: Gilad Arnold <garnold@chromium.org> Reviewed-by: Chris Sosa <sosa@chromium.org> Reviewed-by: Don Garrett <dgarrett@chromium.org>
Diffstat (limited to 'scripts/update_payload/checker_unittest.py')
-rwxr-xr-xscripts/update_payload/checker_unittest.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/update_payload/checker_unittest.py b/scripts/update_payload/checker_unittest.py
index 2c686371..9ca5a64d 100755
--- a/scripts/update_payload/checker_unittest.py
+++ b/scripts/update_payload/checker_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
#
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
@@ -6,6 +6,8 @@
"""Unit testing checker.py."""
+from __future__ import print_function
+
import array
import collections
import cStringIO
@@ -98,6 +100,7 @@ class PayloadCheckerTest(mox.MoxTestBase):
Args:
start_block: The starting block of the extent.
num_blocks: The number of blocks in the extent.
+
Returns:
An Extent message.
"""
@@ -114,6 +117,7 @@ class PayloadCheckerTest(mox.MoxTestBase):
Args:
*args: (start_block, num_blocks) pairs defining the extents.
+
Returns:
A list of Extent objects.
"""
@@ -151,6 +155,7 @@ class PayloadCheckerTest(mox.MoxTestBase):
convert: A representation conversion function.
linebreak: Whether or not a linebreak is to be used in the report.
indent: Indentation used for the report.
+
Returns:
msg: A mock message object.
report: A mock report object.