#NEWLINE# def test_advanced_data_commands( self ) : #NEWLINE# #INDENT# start = self . experiment . do_start_experiment ( '{}' , '{}' ) #NEWLINE# image_resp = self . experiment . do_send_command_to_device ( 'IMAGE' ) #NEWLINE# dec = base64 . b64decode ( image_resp ) #NEWLINE# assert ( len ( dec ) > 100 ) #NEWLINE# plot_resp = self . experiment . do_send_command_to_device ( 'PLOT' ) #NEWLINE# f = file ( '/tmp/img.html' , 'w+' ) #NEWLINE# f . write ( ( '\n            <html><body><img alt="embedded" src="data:image/jpg;base64,%s"/></body></html>\n            ' % image_resp ) ) #NEWLINE# f . close ( )