예제 #1
0
def test_existing():
    episodes = construct_handler(Push, SyncMedia.Episodes)

    assert_ignored(
        episodes, 101,
        'tt100',

        identifier=(1, 1),
        p_show={
            'title': 'One',
            'year': 2000
        },
        p_item={},
        p_value=datetime(2000, 6, 14),
        t_value=datetime(2000, 6, 14)
    )

    assert_ignored(
        episodes, 102,
        'tt100',

        identifier=(1, 2),
        p_show={
            'title': 'One',
            'year': 2000
        },
        p_item={},
        p_value=None,
        t_value=datetime(2000, 6, 14)
    )
예제 #2
0
def test_existing():
    movies = construct_handler(Push, SyncMedia.Movies)

    assert_ignored(movies,
                   100,
                   'tt100',
                   p_item={
                       'title': 'One',
                       'year': 2000
                   },
                   p_value=datetime(2000, 6, 14),
                   t_value=datetime(2000, 6, 14))

    assert_ignored(movies,
                   200,
                   'tt200',
                   p_item={
                       'title': 'Two',
                       'year': 2000
                   },
                   p_value=None,
                   t_value=datetime(2000, 6, 14))