diff options
author | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2005-09-28 18:19:20 +0000 |
---|---|---|
committer | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2005-09-28 18:19:20 +0000 |
commit | 7dc62ace746abcb314851ff713f5411a12ee0b48 (patch) | |
tree | 14c4b7bb7abb277b14801640c39364fbe7ea98da /tests | |
parent | fe0747b414c0b4ed1517297c6fd8e7dea6d1c63e (diff) | |
download | pygtk-7dc62ace746abcb314851ff713f5411a12ee0b48.tar.gz |
workaround gtk bug #317455
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/test_textview.py | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 0a9ee847..e914250d 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -31,6 +31,7 @@ tests = \ test_subtype.py \ test_gdkevent.py \ test_unknown.py \ + test_textview.py \ test_source.py # This is a hack to make sure a shared library is built diff --git a/tests/test_textview.py b/tests/test_textview.py new file mode 100644 index 00000000..5022fdac --- /dev/null +++ b/tests/test_textview.py @@ -0,0 +1,14 @@ +import sys +import unittest + +from common import gtk + +class TextViewTest(unittest.TestCase): + def test_default_attributes(self): + textview = gtk.TextView() + attrs = textview.get_default_attributes() + textview.destroy() + self.assertEqual(attrs.font_scale, 1.0) + +if __name__ == '__main__': + unittest.main() |