diff options
author | Johan Dahlin <johan@src.gnome.org> | 2006-04-11 14:11:09 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2006-04-11 14:11:09 +0000 |
commit | d775961664e4755481ef01c192ea8b8d27cf7567 (patch) | |
tree | 60beef30983edffbc29f74db19ef6163ee743f33 /tests/test_conversion.py | |
parent | be8d076bbafd3bb5f26fa8716ff6e898b76b1d1a (diff) | |
download | pygobject-d775961664e4755481ef01c192ea8b8d27cf7567.tar.gz pygobject-d775961664e4755481ef01c192ea8b8d27cf7567.tar.xz pygobject-d775961664e4755481ef01c192ea8b8d27cf7567.zip |
reindent
Diffstat (limited to 'tests/test_conversion.py')
-rw-r--r-- | tests/test_conversion.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_conversion.py b/tests/test_conversion.py index 373ab9d..d3aee72 100644 --- a/tests/test_conversion.py +++ b/tests/test_conversion.py @@ -7,10 +7,10 @@ import unittest from common import gtk, gobject class Tests(unittest.TestCase): - + def testUnicharArg(self): """ Test unichar values when used as arguments. """ - + entry = gtk.Entry() for valid_value in ['a', u'b', u'\ufff0', u'\ufff0'.encode()]: entry.set_invisible_char(valid_value) @@ -27,11 +27,11 @@ class Tests(unittest.TestCase): raise AssertionError( 'exception not raised on invalid value w/ ' 'set_invisible_char: %s' % invalid_value) - + def testUnicharProperty(self): """ Test unichar values when used as properties. """ - + entry = gtk.Entry() for valid_value in ['a', u'b', u'\ufff0', u'\ufff0'.encode()]: entry.set_property('invisible_char', valid_value) @@ -53,7 +53,7 @@ class Tests(unittest.TestCase): entry = gobject.new(gtk.Entry, invisible_char=valid_value) self.assertEqual(entry.get_property('invisible_char'), valid_value, valid_value) - + def testColorCreation(self): """ Test GdkColor creation """ @@ -76,10 +76,10 @@ class Tests(unittest.TestCase): table = gtk.Table(2, 2, False) table.attach(child, 1, 2, 0, 1, ypadding=2) self.assertEqual(table.child_get_property(child, 'y-padding'), 2) - + child = gtk.DrawingArea() table.attach(child, 1, 2, 0, 1, ypadding=2L) self.assertEqual(table.child_get_property(child, 'y-padding'), 2) - + if __name__ == '__main__': unittest.main() |