b42197cc67ff455bfbd189a417433b8ff897ab7b,Orange/widgets/visualize/tests/test_owheatmap.py,TestOWHeatMap,_test_helper,#TestOWHeatMap#Any#,86
Before Change
def _test_helper(self, checked=False):
iris = Table("iris")
msg = self.widget.Error
for i in range(0, self.widget.colsortcb.count()):
self.widget.colsortcb.activated.emit(i)
self.widget.colsortcb.setCurrentIndex(i)
self.send_signal("Data", None)
self.send_signal("Data", iris[:, 0])
if i > 0:
self.assertTrue(msg.not_enough_features.is_shown())
for j in range(0, self.widget.rowsortcb.count()):
self.widget.rowsortcb.activated.emit(j)
self.widget.rowsortcb.setCurrentIndex(j)
self.send_signal("Data", None)
self.send_signal("Data", iris[0:1])
if j > 1:
self.assertTrue(msg.not_enough_instances.is_shown())
elif checked and j > 1:
self.assertTrue(msg.not_enough_instances_k_means.is_shown())
self.send_signal("Data", None)
self.assertFalse(msg.not_enough_features.is_shown())
self.assertFalse(msg.not_enough_instances.is_shown())
self.assertFalse(msg.not_enough_instances_k_means.is_shown())
After Change
def _test_helper(self, kmeans_checked=False):
msg = self.widget.Error
for col_checked in (False, True):
self.widget.controls.col_clustering.setChecked(col_checked)
self.send_signal("Data", None)
self.send_signal("Data", self.data[:, 0])
if col_checked:
self.assertTrue(msg.not_enough_features.is_shown())
for row_checked in (False, True):
self.widget.controls.row_clustering.setChecked(row_checked)
self.send_signal("Data", None)
self.send_signal("Data", self.data[0:1])
if row_checked:
self.assertTrue(msg.not_enough_instances.is_shown())
elif kmeans_checked and row_checked:
self.assertTrue(msg.not_enough_instances_k_means.is_shown())
self.send_signal("Data", None)
self.assertFalse(msg.not_enough_features.is_shown())
self.assertFalse(msg.not_enough_instances.is_shown())
self.assertFalse(msg.not_enough_instances_k_means.is_shown())
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: biolab/orange3
Commit Name: b42197cc67ff455bfbd189a417433b8ff897ab7b
Time: 2017-02-09
Author: tankovesna@hotmail.com
File Name: Orange/widgets/visualize/tests/test_owheatmap.py
Class Name: TestOWHeatMap
Method Name: _test_helper
Project Name: GoogleCloudPlatform/cloudml-samples
Commit Name: 494721f7ad7dc44d6e8da3ac287b5dc5c39fab59
Time: 2017-12-10
Author: remi.turpaud@gmail.com
File Name: census/keras/trainer/model.py
Class Name:
Method Name: generator_input
Project Name: Pinafore/qb
Commit Name: 2f74f04253d5a90459401d0f09ea0559d50371a0
Time: 2016-06-25
Author: ski.rodriguez@gmail.com
File Name: util/guess.py
Class Name: GuessList
Method Name: check_recall