def test_is_state(self):
        self.hass.states.set('test.object', 'available')
        self.assertEqual(
            'yes',
            template.render(
                self.hass,
                """
{% if is_state("test.object", "available") %}yes{% else %}no{% endif %}
                """))
Build wait factory
dataset/ETHPy150Open home-assistant/home-assistant/tests/helpers/test_template.py/TestUtilTemplate.test_is_state--crossover with--dataset/ETHPy150Open tuturto/pyherc/src/pyherc/test/builders/action.py/WaitFactoryBuilder.build