def step_impl(context):
    """
    :type context: behave.runner.Context
    """
    mock = Mock()
    context.expected_message = "Here's the message"
    mock.side_effect = DownloadError(context.expected_message)
    context.main_window.tracklist_model._show_track_details = mock
    add_remote_song_to_tracklist(context)
def step_impl(context, pos):
    """
    :type context: behave.runner.Context
    """
    add_remote_song_to_tracklist(context, pos=int(pos))
def step_impl(context):
    """
    :type context: behave.runner.Context
    """
    add_remote_song_to_tracklist(context, video=True)
    add_remote_song_to_tracklist(context, full_song=True, video=True)