Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSascha Silbe <sascha-pgp@silbe.org>2010-10-15 17:53:25 (GMT)
committer Sascha Silbe <sascha-pgp@silbe.org>2010-11-23 16:14:32 (GMT)
commite2231d56203dcc58cc8a8a873ab1eef1b56a629e (patch)
tree4ab1f9f1c4284515a1f83cb359b1d89c3c938a54 /tests
parent131c28bb724d89900a1707ad4cae726ba8e9ce5a (diff)
PEP8 cleanup: fix number of blank lines
Caught by pep8. Reviewed-by: James Cameron <quozl@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/graphics/common.py4
-rw-r--r--tests/graphics/hipposcalability.py1
-rw-r--r--tests/graphics/iconcache.py1
-rw-r--r--tests/lib/test_mime.py3
4 files changed, 8 insertions, 1 deletions
diff --git a/tests/graphics/common.py b/tests/graphics/common.py
index 2f00099..1a7bf47 100644
--- a/tests/graphics/common.py
+++ b/tests/graphics/common.py
@@ -19,10 +19,12 @@ import gtk
from sugar.graphics.toolbutton import ToolButton
+
class Test(gtk.VBox):
def __init__(self):
gtk.VBox.__init__(self)
+
class TestPalette(Test):
def __init__(self):
Test.__init__(self)
@@ -39,6 +41,7 @@ class TestPalette(Test):
def set_palette(self, palette):
self._invoker.set_palette(palette)
+
class TestRunner(object):
def run(self, test):
window = gtk.Window()
@@ -48,6 +51,7 @@ class TestRunner(object):
window.show()
+
def main(test):
runner = TestRunner()
runner.run(test)
diff --git a/tests/graphics/hipposcalability.py b/tests/graphics/hipposcalability.py
index a5cebcc..4101138 100644
--- a/tests/graphics/hipposcalability.py
+++ b/tests/graphics/hipposcalability.py
@@ -19,6 +19,7 @@ canvas.set_root(scrollbars)
box = hippo.CanvasBox(padding=10, spacing=10)
scrollbars.set_root(box)
+
def idle_cb():
global countdown
diff --git a/tests/graphics/iconcache.py b/tests/graphics/iconcache.py
index b03ecb6..90511d4 100644
--- a/tests/graphics/iconcache.py
+++ b/tests/graphics/iconcache.py
@@ -41,6 +41,7 @@ data = [
['battery-090', '#D1A3FF,#00A0FF'],
['battery-100', '#AC32FF,#FF2B34']]
+
def _button_activated_cb(button):
import random
diff --git a/tests/lib/test_mime.py b/tests/lib/test_mime.py
index 9a9ad61..fd7006b 100644
--- a/tests/lib/test_mime.py
+++ b/tests/lib/test_mime.py
@@ -22,6 +22,7 @@ import unittest
from sugar import mime
+
class TestMime(unittest.TestCase):
def test_from_file_name(self):
self.assertEqual(mime.get_from_file_name('test.pdf'),
@@ -76,6 +77,6 @@ class TestMime(unittest.TestCase):
'text/plain'])
self.assertEqual(mime_type, 'text/plain')
+
if __name__ == "__main__":
unittest.main()
-