'Check distances when the metric changes'

def test_distance_combo(self):

    self.assertEqual(self.widget.metrics_combo.count(), len(METRICS))
    self.send_signal(self.widget.Inputs.data, self.iris)
    for (i, metric) in enumerate(METRICS):
        if isinstance(metric, MahalanobisDistance):
            metric = MahalanobisDistance(self.iris)
        self.widget.metrics_combo.activated.emit(i)
        self.widget.metrics_combo.setCurrentIndex(i)
        self.send_signal(self.widget.Inputs.data, self.iris)
        np.testing.assert_array_equal(metric(self.iris), self.get_output(self.widget.Outputs.distances))
