'Test the \'and\' condition.'

def test_and_condition_with_template(self):

    test = condition.from_config({'condition': 'and', 'conditions': [{'condition': 'template', 'value_template': '{{    states.sensor.temperature.state    ==    "100"    }}'}, {'condition': 'numeric_state', 'entity_id': 'sensor.temperature', 'below': 110}]})
    self.hass.states.set('sensor.temperature', 120)
    assert (not test(self.hass))
    self.hass.states.set('sensor.temperature', 105)
    assert (not test(self.hass))
    self.hass.states.set('sensor.temperature', 100)
    assert test(self.hass)
