'Test for zone condition.'

def test_zone_condition(self):

    self.hass.states.set('test.entity', 'hello', {'latitude': 32.880586, 'longitude': (-117.237564)})
    self.hass.block_till_done()
    assert setup_component(self.hass, automation.DOMAIN, {automation.DOMAIN: {'trigger': {'platform': 'event', 'event_type': 'test_event'}, 'condition': {'condition': 'zone', 'entity_id': 'test.entity', 'zone': 'zone.test'}, 'action': {'service': 'test.automation'}}})
    self.hass.bus.fire('test_event')
    self.hass.block_till_done()
    self.assertEqual(1, len(self.calls))
