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