#NEWLINE# def test_supported_media_commands_children_and_cmds( self ) : #NEWLINE# #INDENT# 'Test supported media commands with children and attrs.' #NEWLINE# config = self . config_children_and_attr #NEWLINE# universal . validate_config ( config ) #NEWLINE# config [ 'commands' ] [ 'turn_on' ] = 'test' #NEWLINE# config [ 'commands' ] [ 'turn_off' ] = 'test' #NEWLINE# config [ 'commands' ] [ 'volume_up' ] = 'test' #NEWLINE# config [ 'commands' ] [ 'volume_down' ] = 'test' #NEWLINE# config [ 'commands' ] [ 'volume_mute' ] = 'test' #NEWLINE# ump = universal . UniversalMediaPlayer ( self . hass , ** config ) #NEWLINE# ump . entity_id = media_player . ENTITY_ID_FORMAT . format ( config [ 'name' ] ) #NEWLINE# ump . update ( ) #NEWLINE# self . mock_mp_1 . _supported_media_commands = universal . SUPPORT_VOLUME_SET #NEWLINE# self . mock_mp_1 . _state = STATE_PLAYING #NEWLINE# self . mock_mp_1 . update_ha_state ( ) #NEWLINE# ump . update ( ) #NEWLINE# check_flags = ( ( ( universal . SUPPORT_TURN_ON | universal . SUPPORT_TURN_OFF ) | universal . SUPPORT_VOLUME_STEP ) | universal . SUPPORT_VOLUME_MUTE ) #NEWLINE# self . assertEqual ( config , ump . supported_media_commands )