#NEWLINE# @ pytest . mark . parametrize ( 'cassette_path, serializer' , [ ( 'tests/fixtures/migration/old_cassette.json' , jsonserializer ) , ( 'tests/fixtures/migration/old_cassette.yaml' , yamlserializer ) ] ) #NEWLINE# def test_load_cassette_with_old_cassettes( cassette_path , serializer ) : #NEWLINE# #INDENT# with pytest . raises ( ValueError ) as excinfo : #NEWLINE# #INDENT# vcr . persist . load_cassette ( serializer , serializer ) #NEWLINE# #UNINDENT# assert ( 'run the migration script' in excinfo . exconly ( ) )