[Python-checkins] r73248 - python/branches/tk_and_idle_maintenance/Lib/lib-tk/test/test_tkinter/test_text.py
guilherme.polo
python-checkins at python.org
Fri Jun 5 17:16:41 CEST 2009
Author: guilherme.polo
Date: Fri Jun 5 17:16:41 2009
New Revision: 73248
Log:
Basic {x,y}view tests for Tkinter.Text
Modified:
python/branches/tk_and_idle_maintenance/Lib/lib-tk/test/test_tkinter/test_text.py
Modified: python/branches/tk_and_idle_maintenance/Lib/lib-tk/test/test_tkinter/test_text.py
==============================================================================
--- python/branches/tk_and_idle_maintenance/Lib/lib-tk/test/test_tkinter/test_text.py (original)
+++ python/branches/tk_and_idle_maintenance/Lib/lib-tk/test/test_tkinter/test_text.py Fri Jun 5 17:16:41 2009
@@ -177,11 +177,15 @@
def test_window(self):
pass
- def test_xview(self):
- pass
+ def test_xview(self, method='xview'):
+ view = getattr(self.text, method)()
+ self.assertTrue(isinstance(view, tuple))
+ self.assertEqual(len(view), 2)
+ for item in view:
+ self.assertTrue(isinstance(item, float))
def test_yview(self):
- pass
+ self.test_xview('yview')
tests_gui = (TextTest, )
More information about the Python-checkins
mailing list