Ejemplo n.º 1
0
def test_get_matches_no_match(episodes):
    subtitle = TheSubDBSubtitle(Language('eng'), 'ad32876133355929d814457537e12dc2')
    matches = subtitle.get_matches(episodes['got_s03e10'], hearing_impaired=True)
    assert matches == set()
Ejemplo n.º 2
0
def test_get_matches_no_match(episodes):
    subtitle = TheSubDBSubtitle(Language('eng'),
                                'ad32876133355929d814457537e12dc2')
    matches = subtitle.get_matches(episodes['got_s03e10'])
    assert matches == set()
Ejemplo n.º 3
0
def test_get_matches(movies):
    subtitle = TheSubDBSubtitle(Language('eng'), 'ad32876133355929d814457537e12dc2')
    matches = subtitle.get_matches(movies['man_of_steel'])
    assert matches == {'hash', 'hearing_impaired'}
Ejemplo n.º 4
0
def test_get_matches(movies):
    subtitle = TheSubDBSubtitle(Language('eng'),
                                'ad32876133355929d814457537e12dc2')
    matches = subtitle.get_matches(movies['man_of_steel'])
    assert matches == {'hash'}