- number of lines is 2 (at least on Win8), so changed check

- assertGreater looks clearer
This commit is contained in:
Werner F Bruhin
2014-06-10 15:13:27 +02:00
parent 72b529b599
commit d6d63cc54d

View File

@@ -20,8 +20,8 @@ class lib_expando_Tests(wtc.WidgetTestCase):
# All we can test here is that we have more lines than we started
# with, since different platforms may wrap at different spots in the
# string.
self.assertTrue(w.GetNumberOfLines() > 2)
self.assertTrue(bs2.height > bs1.height)
self.assertGreaterEqual(w.GetNumberOfLines(), 2)
self.assertGreater(bs2.height, bs1.height)
#---------------------------------------------------------------------------