'Test a list of proximities.'

def test_proximities(self):

    config = {'proximity': {'home': {'ignored_zones': ['work'], 'devices': ['device_tracker.test1', 'device_tracker.test2'], 'tolerance': '1'}, 'work': {'devices': ['device_tracker.test1'], 'tolerance': '1'}}}
    self.assertTrue(setup_component(self.hass, DOMAIN, config))
    proximities = ['home', 'work']
    for prox in proximities:
        state = self.hass.states.get(('proximity.' + prox))
        assert (state.state == 'not    set')
        assert (state.attributes.get('nearest') == 'not    set')
        assert (state.attributes.get('dir_of_travel') == 'not    set')
        self.hass.states.set(('proximity.' + prox), '0')
        self.hass.block_till_done()
        state = self.hass.states.get(('proximity.' + prox))
        assert (state.state == '0')
