aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo@ubuntu.com>2013-06-27 11:12:50 +0200
committerMilo Casagrande <milo@ubuntu.com>2013-06-27 11:12:50 +0200
commit33e3d2570f5f533f5bdf27933ac99287efa92338 (patch)
treea6f2dcf1c3e54d03c684f99835af54a72a2be52d
parent23b205a7e5b8c60d88eb3c87556208d77a0e8abd (diff)
parente2101dad1721a0048597084eba55b030a3bae786 (diff)
PEP8 fixes.
-rw-r--r--linaro_image_tools/hwpack/tests/test_config.py6
-rw-r--r--linaro_image_tools/hwpack/tests/test_hardwarepack.py2
-rw-r--r--linaro_image_tools/media_create/boards.py2
-rw-r--r--linaro_image_tools/media_create/tests/test_media_create.py2
-rw-r--r--linaro_image_tools/tests/test_utils.py2
5 files changed, 7 insertions, 7 deletions
diff --git a/linaro_image_tools/hwpack/tests/test_config.py b/linaro_image_tools/hwpack/tests/test_config.py
index d5dce48..050cfc0 100644
--- a/linaro_image_tools/hwpack/tests/test_config.py
+++ b/linaro_image_tools/hwpack/tests/test_config.py
@@ -304,9 +304,9 @@ class ConfigTests(TestCase):
def test_validate_partition_layout(self):
partition_layout = 'apafs_bananfs'
config = self.get_config(self.valid_start_v2 + "u_boot_package = "
- "u-boot-linaro-s5pv310\nu_boot_file = "
- "u-boot.bin\npartition_layout = %s\n" %
- partition_layout)
+ "u-boot-linaro-s5pv310\nu_boot_file = "
+ "u-boot.bin\npartition_layout = %s\n" %
+ partition_layout)
self.assertValidationError(
"Undefined partition layout %s in the [%s] section. "
"Valid partition layouts are %s."
diff --git a/linaro_image_tools/hwpack/tests/test_hardwarepack.py b/linaro_image_tools/hwpack/tests/test_hardwarepack.py
index 5219937..65a71ed 100644
--- a/linaro_image_tools/hwpack/tests/test_hardwarepack.py
+++ b/linaro_image_tools/hwpack/tests/test_hardwarepack.py
@@ -443,7 +443,7 @@ class HardwarePackTests(TestCase):
self.assertThat(
tf,
HardwarePackHasFile("pkgs/%s" % package1.filename,
- content=package1.content.read()))
+ content=package1.content.read()))
self.assertThat(
tf,
HardwarePackHasFile("pkgs/%s" % package2.filename,
diff --git a/linaro_image_tools/media_create/boards.py b/linaro_image_tools/media_create/boards.py
index 7d935b5..7a1cff4 100644
--- a/linaro_image_tools/media_create/boards.py
+++ b/linaro_image_tools/media_create/boards.py
@@ -1169,7 +1169,7 @@ class SnowballEmmcConfig(SnowballSdConfig):
self.delete_file(toc_filename)
if self.delete_startupfiles:
self.delete_file(os.path.join(config_files_dir,
- self.snowball_startup_files_config))
+ self.snowball_startup_files_config))
def snowball_config(self, chroot_dir):
# We will find the startupfiles in the target boot partition.
diff --git a/linaro_image_tools/media_create/tests/test_media_create.py b/linaro_image_tools/media_create/tests/test_media_create.py
index 75101a5..11deed1 100644
--- a/linaro_image_tools/media_create/tests/test_media_create.py
+++ b/linaro_image_tools/media_create/tests/test_media_create.py
@@ -2987,7 +2987,7 @@ class TestPartitionSetup(TestCaseWithFixtures):
self.linux_offsets_and_sizes = [
(16384 * SECTOR_SIZE, 15746 * SECTOR_SIZE),
(32768 * SECTOR_SIZE, (self.linux_image_size -
- 32768 * SECTOR_SIZE))
+ 32768 * SECTOR_SIZE))
]
self.android_image_size = 256 * 1024 ** 2
# Extended partition info takes 32 sectors from the first ext partition
diff --git a/linaro_image_tools/tests/test_utils.py b/linaro_image_tools/tests/test_utils.py
index 9197db8..2760654 100644
--- a/linaro_image_tools/tests/test_utils.py
+++ b/linaro_image_tools/tests/test_utils.py
@@ -280,7 +280,7 @@ class TestInstallPackageProviding(TestCaseWithFixtures):
else:
self.assertEqual(
['apt-get -s install dosfstools',
- '%s apt-get --yes install dosfstools' % sudo_args],
+ '%s apt-get --yes install dosfstools' % sudo_args],
fixture.mock.commands_executed)
def test_package_installation_refused(self):