def test_RANK_Kendall_diff_elems(self): TEST_DECISION = ['class', 'invented', 'baro', 'instru'] GT_DECISION = ['classical', 'instrumental', 'piano', 'baroque'] kendall = KendallTau() kendall.load_ground_truth(self.GT_DECISION) kendall.load_test(self.TEST_DECISION) assert_raises(ValueError, kendall.compute) #Different elements
def test_RANK_Kendall_load_test(self): kendall = KendallTau() kendall.load_test(self.TEST_DATA) assert_equal(len(kendall.get_test()), len(self.TEST_DATA))