コード例 #1
0
ファイル: test_video.py プロジェクト: pokys/rpi-subliminal
def test_movie_fromguess_insufficient_data(movies):
    guess = {'type': 'movie'}
    with pytest.raises(ValueError) as excinfo:
        Movie.fromguess(movies['man_of_steel'].name, guess)
    assert str(excinfo.value) == 'Insufficient data to process the guess'
コード例 #2
0
ファイル: test_video.py プロジェクト: pokys/rpi-subliminal
def test_movie_fromguess_wrong_type(movies):
    guess = {'type': 'subtitle'}
    with pytest.raises(ValueError) as excinfo:
        Movie.fromguess(movies['man_of_steel'].name, guess)
    assert str(excinfo.value) == 'The guess must be a movie guess'
コード例 #3
0
ファイル: test_video.py プロジェクト: fernandog/subliminal
def test_movie_fromguess_insufficient_data(movies):
    guess = {'type': 'movie'}
    with pytest.raises(ValueError) as excinfo:
        Movie.fromguess(movies['man_of_steel'].name, guess)
    assert str(excinfo.value) == 'Insufficient data to process the guess'
コード例 #4
0
ファイル: test_video.py プロジェクト: fernandog/subliminal
def test_movie_fromguess_wrong_type(movies):
    guess = {'type': 'subtitle'}
    with pytest.raises(ValueError) as excinfo:
        Movie.fromguess(movies['man_of_steel'].name, guess)
    assert str(excinfo.value) == 'The guess must be a movie guess'
コード例 #5
0
ファイル: test_video.py プロジェクト: Diaoul/subliminal
def test_movie_fromguess_insufficient_data(movies):
    guess = {"type": "movie"}
    with pytest.raises(ValueError) as excinfo:
        Movie.fromguess(movies["man_of_steel"].name, guess)
    assert str(excinfo.value) == "Insufficient data to process the guess"
コード例 #6
0
ファイル: test_video.py プロジェクト: Diaoul/subliminal
def test_movie_fromguess_wrong_type(movies):
    guess = {"type": "subtitle"}
    with pytest.raises(ValueError) as excinfo:
        Movie.fromguess(movies["man_of_steel"].name, guess)
    assert str(excinfo.value) == "The guess must be a movie guess"