summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Ward <ian@excess.org>2014-01-04 21:25:59 -0500
committerIan Ward <ian@excess.org>2014-01-04 21:25:59 -0500
commitf53567e813b31d3dc2580b96ce3f968913edb964 (patch)
tree825f64525a9e67d08049e22aa428191c094bcad6
parent1193c0bfb5225d030db4d24af2fb3bcf697888f6 (diff)
downloadurwid-f53567e813b31d3dc2580b96ce3f968913edb964.tar.gz
test show #45 GridFlow v_sep not behaving properly
-rw-r--r--urwid/tests/test_container.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/urwid/tests/test_container.py b/urwid/tests/test_container.py
index 7ede31b..6ddb909 100644
--- a/urwid/tests/test_container.py
+++ b/urwid/tests/test_container.py
@@ -284,6 +284,10 @@ class GridFlowTest(unittest.TestCase):
def test_basics(self):
repr(urwid.GridFlow([], 5, 0, 0, 'left')) # should not fail
+ def test_v_sep(self):
+ gf = urwid.GridFlow([urwid.Text("test")], 10, 3, 1, "center")
+ self.assertEqual(gf.rows((40,), False), 1)
+
class WidgetSquishTest(unittest.TestCase):
def wstest(self, w):