def testSanity(self): """sqrtIt(sqIt(n))==n for all n""" for integer in range(1, 10000): square=sqrteg.sqIt(integer) result=sqrteg.sqrtIt(square) self.assertEqual(integer, result)
def testSqItTestData(self): """sqIt give known result with known output""" for integer,square in self.TestData: result=sqrteg.sqIt(integer) self.assertEqual(square, result)