##// END OF EJS Templates
Merge pull request #8062 from minrk/max-width-again...
Merge pull request #8062 from minrk/max-width-again another stab at confining images to page width

File last commit:

r21001:6bd35b18
r21006:6c367e1e merge
Show More
test_traits.py
20 lines | 524 B | text/x-python | PythonLexer
Sylvain Corlay
Move color trait type to the widget package
r20797 """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
Min RK
update traitlets test import in widgets...
r21001 from traitlets.tests.test_traitlets import TraitTestBase
Sylvain Corlay
Move color trait type to the widget package
r20797 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"]