diff options
author | Ian Ward <none@none> | 2009-03-12 01:13:40 -0400 |
---|---|---|
committer | Ian Ward <none@none> | 2009-03-12 01:13:40 -0400 |
commit | 5175f5378da757273267daae86f1315ca69a30db (patch) | |
tree | 74af67089485305d205ec4c43ed843a19cbd8527 /test_urwid.py | |
parent | 361175bcad6dd20e4700433ccd0e2fa0b69182e7 (diff) | |
download | urwid-5175f5378da757273267daae86f1315ca69a30db.tar.gz |
update unit tests for CanvasCache change
--HG--
extra : transplant_source : z%08uf%2C%3BvB%C2%9B%9B%BA%E7%5E%DD%B59T%AD%40
Diffstat (limited to 'test_urwid.py')
-rwxr-xr-x | test_urwid.py | 8 |
1 files changed, 4 insertions, 4 deletions
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) |