Vehicle-Anti-Theft-Face-Rec.../venv/Lib/site-packages/qtconsole/tests/test_styles.py

16 lines
519 B
Python
Raw Normal View History

2020-11-12 16:05:57 +00:00
import unittest
from qtconsole.styles import dark_color, dark_style
class TestStyles(unittest.TestCase):
def test_dark_color(self):
self.assertTrue(dark_color('#000000')) # black
self.assertTrue(not dark_color('#ffff66')) # bright yellow
self.assertTrue(dark_color('#80807f')) # < 50% gray
self.assertTrue(not dark_color('#808080')) # = 50% gray
def test_dark_style(self):
self.assertTrue(dark_style('monokai'))
self.assertTrue(not dark_style('default'))