From 5175f5378da757273267daae86f1315ca69a30db Mon Sep 17 00:00:00 2001 From: Ian Ward Date: Thu, 12 Mar 2009 01:13:40 -0400 Subject: update unit tests for CanvasCache change --HG-- extra : transplant_source : z%08uf%2C%3BvB%C2%9B%9B%BA%E7%5E%DD%B59T%AD%40 --- test_urwid.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test_urwid.py') diff --git a/test_urwid.py b/test_urwid.py index ca0134c..18f25aa 100755 --- a/test_urwid.py +++ b/test_urwid.py @@ -498,7 +498,7 @@ class CanvasCacheTest(unittest.TestCase): urwid.CanvasCache._widgets.clear() def cct(self, widget, size, focus, expected): - got = urwid.CanvasCache.fetch(widget, size, focus) + got = urwid.CanvasCache.fetch(widget, urwid.Widget, size, focus) assert expected==got, "got: %s expected: %s"%(got, expected) def test1(self): @@ -511,9 +511,9 @@ class CanvasCacheTest(unittest.TestCase): bloo = urwid.TextCanvas() bloo.finalize(b, (20,2), True) - urwid.CanvasCache.store(blah) - urwid.CanvasCache.store(blah2) - urwid.CanvasCache.store(bloo) + urwid.CanvasCache.store(urwid.Widget, blah) + urwid.CanvasCache.store(urwid.Widget, blah2) + urwid.CanvasCache.store(urwid.Widget, bloo) self.cct(a, (10,1), False, blah) self.cct(a, (15,1), False, blah2) -- cgit v1.2.1