def test_convert_instruction_toggle(self): example = "toggle 347,482 through 959,482" expected = "toggle", (347,482), (959,482) self.assertEqual(expected, convert_instruction_string(example))
def test_convert_instruction_turn_off(self): example = "turn off 387,19 through 720,700" expected = "turn off", (387, 19), (720, 700) self.assertEqual(expected, convert_instruction_string(example))
def test_convert_instruction_turn_on(self): example = "turn on 952,417 through 954,845" expected = "turn on", (952,417), (954,845) self.assertEqual(expected, convert_instruction_string(example))