예제 #1
0
 def testBasic(self):
   actualdict = myRec.transformPref(myRec.critics)
   for name in myRec.critics:
     for movie in myRec.critics[name]:
       self.assertEqual(actualdict[movie][name], myRec.critics[name][movie])
예제 #2
0
 def testSanity(self):
   actualDict = myRec.transformPref(myRec.critics)["Lady in the Water"]
   self.assertEqual(len(self.testCritics["Lady in the Water"]), len(actualDict))
   for item in actualDict:
     self.assertEqual(actualDict[item], self.testCritics["Lady in the Water"][item])