From 032b05c79307b89d139882e2cad0d45723faf1b6 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 13 Apr 2019 14:14:15 -0700 Subject: [PATCH] One more test --- unittests/test_window.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/unittests/test_window.py b/unittests/test_window.py index ae7a99c4..b8132b8e 100644 --- a/unittests/test_window.py +++ b/unittests/test_window.py @@ -152,6 +152,16 @@ class WindowTests(wtc.WidgetTestCase): assert isinstance(w.GetClassDefaultAttributes().font, wx.Font) + def test_vizattrs3(self): + w = wx.Window(self.frame, -1, (10,10), (50,50)) + a = w.GetClassDefaultAttributes() + with self.assertRaises(AttributeError): + a.colBg = wx.Colour('blue') + with self.assertRaises(AttributeError): + a.colFg = wx.Colour('blue') + with self.assertRaises(AttributeError): + a.font = wx.NORMAL_FONT + #---------------------------------------------------------------------------