Esempio n. 1
0
 def test_add(self):
     res = mathu.Mathu().add(5, 8)
     self.assertEqual(res, 13)
Esempio n. 2
0
 def test_check_even(self):
     res = mathu.Mathu().check_even(4)
     self.assertTrue(res)
Esempio n. 3
0
 def test_error(self):
     self.assertRaises(ZeroDivisionError, lambda:mathu.Mathu().div(5, 0))
Esempio n. 4
0
 def test_div(self):
     res = mathu.Mathu().div(10, 8)
     self.assertGreater(res, 1)