summaryrefslogtreecommitdiffstats
path: root/tests/test_gtype.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2006-04-11 14:11:09 +0000
committerJohan Dahlin <johan@src.gnome.org>2006-04-11 14:11:09 +0000
commitd775961664e4755481ef01c192ea8b8d27cf7567 (patch)
tree60beef30983edffbc29f74db19ef6163ee743f33 /tests/test_gtype.py
parentbe8d076bbafd3bb5f26fa8716ff6e898b76b1d1a (diff)
downloadpygobject-d775961664e4755481ef01c192ea8b8d27cf7567.tar.gz
pygobject-d775961664e4755481ef01c192ea8b8d27cf7567.tar.xz
pygobject-d775961664e4755481ef01c192ea8b8d27cf7567.zip
reindent
Diffstat (limited to 'tests/test_gtype.py')
-rw-r--r--tests/test_gtype.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_gtype.py b/tests/test_gtype.py
index b8177fd..52efda4 100644
--- a/tests/test_gtype.py
+++ b/tests/test_gtype.py
@@ -8,16 +8,16 @@ class GTypeTest(unittest.TestCase):
# First, double check so we get back what we sent
str = GType(expected).name # pyg_type_from_object
val = GType.from_name(str) # pyg_type_wrapper_new
- self.assertEqual(val, expected,
+ self.assertEqual(val, expected,
'got %r while %r was expected' % (val, expected))
# Then test the objects
for object in objects:
val = GType.from_name(GType(expected).name)
- self.assertEqual(val, expected,
+ self.assertEqual(val, expected,
'got %r while %r was expected' %
(val, expected))
-
+
def testBool(self):
self.checkType(gobject.TYPE_BOOLEAN, 'gboolean', bool)
@@ -26,7 +26,7 @@ class GTypeTest(unittest.TestCase):
# model = gtk.ListStore(str, int)
# iter = model.append()
# model.set(iter, 1, 100000000)
-
+
def testInt64(self):
self.checkType(gobject.TYPE_INT64, 'gint64')
@@ -50,7 +50,7 @@ class GTypeTest(unittest.TestCase):
def testPyObject(self):
self.checkType(gobject.TYPE_PYOBJECT, 'GObject', object)
-
+
def testObject(self):
self.checkType(gobject.TYPE_OBJECT, 'PyObject')
@@ -62,6 +62,6 @@ class MyObject(gobject.GObject):
class TypeNameTest(unittest.TestCase):
def testTypeName(self):
self.assertEqual(GType(MyObject).name, 'MyObject')
-
+
if __name__ == '__main__':
unittest.main()