Ejemplo n.º 1
0
 def test_8_4(self):
     "test toFrozenset from recommend.py"
     simdata = [frozenset(['1']),frozenset(['2']),frozenset(['3']),frozenset(['4'])]
     result = toFrozenset(simdata)
     expectResult = [[frozenset(['1'])],[frozenset(['2'])],[frozenset(['3'])],[frozenset(['4'])]]
     self.assertListEqual(result,expectResult,"toFrozenset Error")
Ejemplo n.º 2
0
 def test_8_2(self):
     "test toFrozenset from recommend.py"
     simdata = []
     result = toFrozenset(simdata)
     expectResult = []
     self.assertListEqual(result,expectResult,"toFrozenset Error")