#NEWLINE# @ patch ( 'imageio.get_writer' ) #NEWLINE# @ patch ( 'menpo.io.output.base.Path.exists' ) #NEWLINE# def test_export_video_gif( exists , fake_writer ) : #NEWLINE# #INDENT# exists . return_value = False #NEWLINE# fake_path = Path ( '/fake/fake.gif' ) #NEWLINE# mio . export_video ( [ test_img , test_img ] , fake_path , extension = 'gif' ) #NEWLINE# assert ( exists . return_value . append_data . call_count == 2 )