def assert_test_case(self, in0, in1, out, test_id): a = NAndGate() a.set_inputs([in0, in1]) a.execute() if out: self.assertTrue(a.get_output_at(0), "Class NAndGate: " + test_id + " failed") else: self.assertFalse(a.get_output_at(0), "Class NAndGate: " + test_id + " failed")
def testcase_00(self): a = NAndGate() self.assertTrue(a.get_output_at(0), "Automatische initialisierung über virtuelle Methode")