11# Test methods with long descriptive names can omit docstrings
22# pylint: disable=missing-docstring
33from Orange .data import Table
4+ from Orange .preprocess import Continuize
45from Orange .widgets .visualize .owheatmap import OWHeatMap
56from Orange .widgets .tests .base import WidgetTest
67
@@ -10,6 +11,7 @@ def setUp(self):
1011 self .widget = self .create_widget (OWHeatMap )
1112 self .iris = Table ("iris" )
1213 self .housing = Table ("housing" )
14+ self .titanic = Table ("titanic" )
1315
1416 def test_input_data (self ):
1517 """Check widget's data with data on the input"""
@@ -27,3 +29,12 @@ def test_error_message(self):
2729 self .assertTrue (self .widget .Error .active )
2830 self .send_signal ("Data" , self .iris )
2931 self .assertFalse (self .widget .Error .active )
32+
33+ def test_information_message (self ):
34+ self .widget .sort_rows = self .widget .OrderedClustering
35+ continuizer = Continuize ()
36+ cont_titanic = continuizer (self .titanic )
37+ self .send_signal ("Data" , cont_titanic )
38+ self .assertTrue (self .widget .Information .active )
39+ self .send_signal ("Data" , self .iris )
40+ self .assertFalse (self .widget .Information .active )
0 commit comments