def test_SQRT_with_neg_number(self): self.assertIsInstance(math.SQRT(-4), xlerrors.NumExcelError)
def test_SQRT_with_bad_arg(self): self.assertIsInstance(math.SQRT('bad'), xlerrors.ValueExcelError)
def test_SQRT(self): self.assertEqual(math.SQRT(4), 2) self.assertEqual(math.SQRT(4.0), 2.0)