def test_3(self): self.assertEquals(day7.parseline("x AND y -> d"), ("and", "x", "y", "d"))
def test_1(self): self.assertEquals(day7.parseline("123 -> x"), ("power", "123", "x"))
def test_2(self): self.assertEquals(day7.parseline("NOT x -> h"), ("not", "x", "h"))
def parseAndAdd(self, string_to_parse): self.breadboard.add_components(*day7.parseline(string_to_parse))