summaryrefslogtreecommitdiff
path: root/scripts/update_payload/checker_unittest.py
diff options
context:
space:
mode:
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.