def test_7_2(self): "test analyseData from recommend.py" dataList = [] c2 = analyseData(dataList) expectResult = [] self.assertListEqual(c2,expectResult,"nalyseData Error")
def test_7_1(self): "test analyseData from recommend.py" dataList = [1,2,3,4] c2 = analyseData(dataList) expectResult = [set([1,2]),set([1,3]),set([1,4]),set([2,3]),set([2,4]),set([3,4])] self.assertListEqual(c2,expectResult,"nalyseData Error")