#NEWLINE# def test_motion_record( camera , mode ) : #NEWLINE# #INDENT# ( resolution , framerate ) = mode #NEWLINE# expected_failures ( resolution , 'h264' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# camera . start_recording ( '/dev/null' , format = 'h264' , motion_output = MotionTest ( mode ) ) #NEWLINE# try : #NEWLINE# #INDENT# camera . wait_recording ( 1 ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# camera . stop_recording ( )