def test_MOD_with_bad_arg(self): self.assertIsInstance(math.MOD('bad', 2), xlerrors.ValueExcelError) self.assertIsInstance(math.MOD(1, 'bad'), xlerrors.ValueExcelError)
def test_MOD_with_float(self): self.assertEqual(math.MOD(1.0, 2), 1)
def test_MOD_with_string(self): self.assertEqual(math.MOD('1.0', 2), 1)
def test_MOD(self): self.assertEqual(math.MOD(1, 2), 1)