From b70299d2051669eec61ea1740523875b26b63df1 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 22 May 2012 00:17:26 +0000 Subject: [PATCH] Add simple unittest for wx.Overlay git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- unittests/test_overlay.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/unittests/test_overlay.py b/unittests/test_overlay.py index 9590bfc2..a886b5d2 100644 --- a/unittests/test_overlay.py +++ b/unittests/test_overlay.py @@ -6,9 +6,14 @@ import wx class overlay_Tests(wtc.WidgetTestCase): - # TODO: Remove this test and add real ones. def test_overlay1(self): - self.fail("Unit tests for overlay not implemented yet.") + o = wx.Overlay() + dc = wx.ClientDC(self.frame) + odc = wx.DCOverlay(o, dc) + odc.Clear() + del odc + o.Reset() + #---------------------------------------------------------------------------