def testGuaranteedSafe(self): hobo = Hobo() hobo.runningResults = [[0, 0]] hobo.runningL0 = [1000] hobo.runningL1 = [5] value = hobo.doMaths() answer = [100] self.assertEqual(answer, value)
def testNormal(self): hobo = Hobo() hobo.runningResults = [[0, 0], [1, 1]] hobo.runningL0 = [3, 4] hobo.runningL1 = [4, 5] value = hobo.doMaths() answer = [46, 66] self.assertEqual(answer, value)