def test_distance_function_return_None_if_invalid_state(self):
        self.hass.states.set('test.object_2', 'happy', {
            'latitude': 10,
        })

        self.assertEqual(
            'None',
            template.render(
                self.hass,
                '{{ distance(states.test.object_2) | round }}'))
Factory that returns a pprint function useful for sequences.  Used by
dataset/ETHPy150Open home-assistant/home-assistant/tests/helpers/test_template.py/TestUtilTemplate.test_distance_function_return_None_if_invalid_state--crossover with--dataset/ETHPy150Open ipython/ipython-py3k/IPython/lib/pretty.py/_seq_pprinter_factory