'Test distance function with 1 state.'

def test_distance_function_with_1_state(self):

    self.hass.states.set('test.object', 'happy', {'latitude': 32.87336, 'longitude': (-117.22943)})
    tpl = template.Template('{{    distance(states.test.object)    |    round    }}', self.hass)
    self.assertEqual('187', tpl.render())
