mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-06 01:40:23 +02:00
23 lines
625 B
Python
23 lines
625 B
Python
import unittest
|
|
from unittests 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()
|