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'
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'
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"
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"