예제 #1
0
 def test_type_1(self):
     calc = Caculator(isAdd=False,
                      isSub=False,
                      isMul=False,
                      isDiv=True,
                      isRem=True)
     with self.assertRaises(ValueError):
         calc.adder(0, 1)
예제 #2
0
 def test_adder_4(self):
     calc = Caculator(isAdd=True,
                      isSub=False,
                      isMul=False,
                      isDiv=False,
                      isRem=False)
     self.assertEqual(calc.adder(0, 0), 0)