diff options
author | Johan Dahlin <johan@src.gnome.org> | 2006-04-03 17:05:00 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2006-04-03 17:05:00 +0000 |
commit | 9743b4f7df7984d755c93b3aeb0fbf94fecf0144 (patch) | |
tree | e59ada3d2c77e90112e3cea968f72c0ff7659ce6 /tests/test_conversion.py | |
parent | ff555f69fe1db1d2fa769275187223fe72c75a75 (diff) | |
download | pygtk-9743b4f7df7984d755c93b3aeb0fbf94fecf0144.tar.gz |
Run reindent.py on all python code
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 373ab9d1..d3aee722 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() |