'Test parsing of booleans in yaml config.'

def test_config_yaml_bool(self):

    config = 'scene:\n        -    name:    test\n                entities:\n                        {0}:    on\n                        {1}:\n                                state:    on\n                                brightness:    100\n'.format(self.light_1.entity_id, self.light_2.entity_id)
    with io.StringIO(config) as file:
        doc = yaml.yaml.safe_load(file)
    self.assertTrue(setup_component(self.hass, scene.DOMAIN, doc))
    scene.activate(self.hass, 'scene.test')
    self.hass.block_till_done()
    self.assertTrue(self.light_1.is_on)
    self.assertTrue(self.light_2.is_on)
    self.assertEqual(100, self.light_2.last_call('turn_on')[1].get('brightness'))
