mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-07 18:30:57 +02:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
29 lines
939 B
Python
29 lines
939 B
Python
import imp_unittest, unittest
|
|
import wtc
|
|
import wx
|
|
import wx.lib.colourdb
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
class lib_colourdb_Tests(wtc.WidgetTestCase):
|
|
|
|
def test_lib_colourdb1(self):
|
|
pnl = wx.Panel(self.frame)
|
|
|
|
wx.lib.colourdb.updateColourDB()
|
|
|
|
self.assertTrue(wx.TheColourDatabase.Find('NAVY').IsOk())
|
|
self.assertTrue(wx.TheColourDatabase.Find('GREY93').IsOk())
|
|
self.assertTrue(wx.TheColourDatabase.Find('MEDIUMPURPLE1').IsOk())
|
|
|
|
self.assertEqual(wx.TheColourDatabase.Find('ORANGERED1'),
|
|
wx.Colour(255, 69, 0, 255))
|
|
|
|
self.assertIn(wx.TheColourDatabase.FindName(wx.Colour(255, 69, 0)),
|
|
['ORANGE RED', 'ORANGERED'])
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|