#NEWLINE# def test_try_migrate_with_yaml( tmpdir ) : #NEWLINE# #INDENT# cassette = tmpdir . join ( 'cassette.yaml' ) . strpath #NEWLINE# shutil . copy ( 'tests/fixtures/migration/old_cassette.yaml' , cassette ) #NEWLINE# assert vcr . migration . try_migrate ( cassette ) #NEWLINE# with open ( 'tests/fixtures/migration/new_cassette.yaml' , 'r' ) as f : #NEWLINE# #INDENT# expected_yaml = yaml . load ( f ) #NEWLINE# #UNINDENT# with open ( cassette , 'r' ) as f : #NEWLINE# #INDENT# actual_yaml = yaml . load ( f ) #NEWLINE# #UNINDENT# assert ( actual_yaml == expected_yaml )