def test_truth_table(self):
    for test_case in self.TRUTH_TABLE:
        assert (self.half_adder.set_inputs(*test_case[0]) == test_case[1])
def test_truth_table(self):
    for test_case in self.TRUTH_TABLE:
        assert (self.half_adder.set_inputs(*test_case[0]) == test_case[1])