def test_config_alexa_entity_id_to_number():
 conf = Config(None, {'type': 'alexa'})
 number = conf.entity_id_to_number('light.test')
 assert (number == 'light.test')
 number = conf.entity_id_to_number('light.test')
 assert (number == 'light.test')
 number = conf.entity_id_to_number('light.test2')
 assert (number == 'light.test2')
 entity_id = conf.number_to_entity_id('light.test')
 assert (entity_id == 'light.test')

def test_config_alexa_entity_id_to_number ( ) : conf = Config ( None , { 'type' : 'alexa' } ) number = conf . entity_id_to_number ( 'light.test' ) assert ( number == 'light.test' ) number = conf . entity_id_to_number ( 'light.test' ) assert ( number == 'light.test' ) number = conf . entity_id_to_number ( 'light.test2' ) assert ( number == 'light.test2' ) entity_id = conf . number_to_entity_id ( 'light.test' ) assert ( entity_id == 'light.test' )
test config adheres to the type .