summaryrefslogtreecommitdiff
path: root/cxmanage_test/image_test.py
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2013-11-19 17:06:33 +0000
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2013-11-19 17:06:33 +0000
commit54116d3c486ed7aa49f284e4cad9e6e7c293bea6 (patch)
treefa32a75ebba262def85af97cc34a7db69bc69034 /cxmanage_test/image_test.py
parent7087e92d40310d9bb6c8b4a6bb1baf7c3b73bee7 (diff)
parent4da2f9c7eaa95ebf357eeca3a497b6a206675ef8 (diff)
downloadcxmanage-baserock/morph.tar.gz
Merge tag 'v0.10.2' into baserock/morphbaserock/morph
v0.10 post-release tag for pyinstaller support
Diffstat (limited to 'cxmanage_test/image_test.py')
-rw-r--r--cxmanage_test/image_test.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/cxmanage_test/image_test.py b/cxmanage_test/image_test.py
index 609aa5b..71e8000 100644
--- a/cxmanage_test/image_test.py
+++ b/cxmanage_test/image_test.py
@@ -1,4 +1,7 @@
-# Copyright (c) 2012, Calxeda Inc.
+"""Calxeda: image_test.py"""
+
+
+# Copyright (c) 2012-2013, Calxeda Inc.
#
# All rights reserved.
#
@@ -39,6 +42,8 @@ from cxmanage_api.tftp import InternalTftp
from cxmanage_test import random_file, TestImage
+
+# pylint: disable=R0904
class ImageTest(unittest.TestCase):
""" Tests involving cxmanage images
@@ -72,13 +77,14 @@ class ImageTest(unittest.TestCase):
self.assertEqual(header.daddr, daddr)
self.assertEqual(simg[header.imgoff:], contents)
- def test_multiple_uploads(self):
+ @staticmethod
+ def test_multiple_uploads():
""" Test to make sure FDs are being closed """
# Create image
filename = random_file(1024)
image = TestImage(filename, "RAW")
- for x in xrange(2048):
+ for _ in xrange(2048):
image.render_to_simg(0, 0)
os.remove(filename)