def METHOD_NAME(self, mock_out, mock_state):
    self._init_command_args()
    self.task.command_args['--add-repo'] = [
        'http://example.com,rpm-md,alias'
    ]
    self.task.process()
    mock_state.assert_called_once_with(
        'http://example.com', 'rpm-md', 'alias', None
    )