Esempio n. 1
0
 def testcase_04(self):
     a = OrGate()
     a.setInput0(True)
     a.setInput1(True)
     a.execute()
     self.assertTrue(a._Output, "Class OrGate: TestCase04 failed")
Esempio n. 2
0
 def testcase_01(self):
     a = OrGate()
     a.setInput0(False)
     a.setInput1(False)
     a.execute()
     self.assertFalse(a._Output, "Class OrGate: TestCase01 failed")