[Python-checkins] r73082 - python/branches/tk_and_idle_maintenance/Lib/lib-tk/test/test_tkinter/test_text.py

guilherme.polo python-checkins at python.org
Sun May 31 22:04:19 CEST 2009


Author: guilherme.polo
Date: Sun May 31 22:04:18 2009
New Revision: 73082
Log:
Typo fix and a minor new test for bbox.
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	Sun May 31 22:04:18 2009
@@ -26,6 +26,7 @@
 bbox = self.text.bbox(('1.0', '-1c', '+1c'))
 self.assertTrue(isinstance(bbox, tuple))
 self.assertEqual(len(bbox), 4)
+ self.assertEqual(bbox, self.text.bbox('1.0 -1c +1c'))
 
 # The following used to raise Tkinter.TclError since text.bbox allowed
 # passing multiple args.
@@ -136,7 +137,7 @@
 self.text.insert('1.0', 'abc')
 self.text.insert('1.1', 'bcd a', 'mytag')
 self.assertEqual(self.text.get('1.0', 'end').strip(), 'abcd abc')
- self.assertIn(self.text.tag_name(), 'mytag')
+ self.assertIn('mytag', self.text.tag_names())
 
 def test_mark(self):
 pass


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /