def test_ROUNDUP_with_bad_arg(self): self.assertIsInstance(math.ROUNDUP('bad'), xlerrors.ValueExcelError) self.assertIsInstance(math.ROUNDUP(1.3, 'bad'), xlerrors.ValueExcelError)
def test_ROUNDUP(self): self.assertEqual(math.ROUNDUP(0.6), 1) self.assertEqual(math.ROUNDUP(1.3), 2) self.assertEqual(math.ROUNDUP(1.24, 1), 1.3)