def test_parse_and_handle_event_writes_to_file(self):
        self.monitor.parse_and_handle_event(self.line % 'Deleted %s')
        self.assertEqual('backup', self._get_state())

        self.monitor.parse_and_handle_event(self.line)
        self.assertEqual('master', self._get_state())
dataset/ETHPy150Open openstack/neutron/neutron/tests/functional/agent/l3/test_keepalived_state_change.py/TestKeepalivedStateChange.test_parse_and_handle_event_writes_to_file/swapped operands of `%`