'Test if we can call a notify from a script.'

def test_calling_notify_from_script_loaded_from_yaml_without_title(self):

    self._setup_notify()
    conf = {'service': 'notify.notify', 'data': {'data': {'push': {'sound': 'US-EN-Morgan-Freeman-Roommate-Is-Arriving.wav'}}}, 'data_template': {'message': 'Test    123    {{    2    +    2    }}\n'}}
    script.call_from_config(self.hass, conf)
    self.hass.block_till_done()
    self.assertTrue((len(self.events) == 1))
    assert ({'message': 'Test    123    4', 'data': {'push': {'sound': 'US-EN-Morgan-Freeman-Roommate-Is-Arriving.wav'}}} == self.events[0].data)
