mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
Phoenix:
- Phoenix-port of `wx.lib.imageutils.py`, with (not particularly smart) unittest and documentation. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
22
unittests/test_lib_imageutils.py
Normal file
22
unittests/test_lib_imageutils.py
Normal file
@@ -0,0 +1,22 @@
|
||||
import imp_unittest, unittest
|
||||
import wtc
|
||||
import wx
|
||||
import wx.lib.imageutils
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class lib_imageutils_Tests(wtc.WidgetTestCase):
|
||||
|
||||
def test_lib_imageutils1(self):
|
||||
|
||||
base = wx.Colour(100, 120, 140)
|
||||
white = wx.lib.imageutils.stepColour(base, 200)
|
||||
black = wx.lib.imageutils.stepColour(base, 0)
|
||||
|
||||
self.assertEqual(white, wx.WHITE)
|
||||
self.assertEqual(black, wx.BLACK)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user