You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
524 B
21 lines
524 B
"""Test trait types of the widget packages."""
|
|
|
|
# Copyright (c) IPython Development Team.
|
|
# Distributed under the terms of the Modified BSD License.
|
|
|
|
from unittest import TestCase
|
|
from IPython.utils.traitlets import HasTraits
|
|
from traitlets.tests.test_traitlets import TraitTestBase
|
|
from IPython.html.widgets import Color
|
|
|
|
|
|
class ColorTrait(HasTraits):
|
|
value = Color("black")
|
|
|
|
|
|
class TestColor(TraitTestBase):
|
|
obj = ColorTrait()
|
|
|
|
_good_values = ["blue", "#AA0", "#FFFFFF"]
|
|
_bad_values = ["vanilla", "blues"]
|