'Test passing variables to templates.'

def test_passing_variables_to_templates(self):

    config = {'service_template': '{{    var_service    }}', 'entity_id': 'hello.world', 'data_template': {'hello': '{{    var_data    }}'}}
    service.call_from_config(self.hass, config, variables={'var_service': 'test_domain.test_service', 'var_data': 'goodbye'})
    self.hass.block_till_done()
    self.assertEqual('goodbye', self.calls[0].data['hello'])
