def testcase_05(self):
     a = NotGate(3)
     testdatas = [[False, False, False, True, True, True],
                  [False, False, True, True, True, False],
                  [False, True, False, True, False, True],
                  [False, True, True, True, False, False],
                  [True, False, False, False, True, True],
                  [True, False, True, False, True, False],
                  [True, True, False, False, False, True],
                  [True, True, True, False, False, False]]
     for testdata in testdatas:
         for i in range(0, 3):
             a.set_input(i, testdata[i])
         a.execute()
         self.assertEqual(
             testdata[3], a.get_output(0),
             "Class NotGate Testcase 5 failed: " + testdata.__str__())
 def testcase_02(self):
     a = NotGate(1)
     a.set_input(0, True)
     a.execute()
     self.assertEqual(False, a.get_output(0),
                      "Class NotGate Testcase 2 failed.")