'Test closest function invalid coordinates.'

def test_closest_function_invalid_coordinates(self):

    self.hass.states.set('test_domain.closest_home', 'happy', {'latitude': (self.hass.config.latitude + 0.1), 'longitude': (self.hass.config.longitude + 0.1)})
    self.assertEqual('None', template.Template('{{    closest("invalid",    "coord",    states)    }}', self.hass).render())
