'Test .'

def test_closest_returns_closest(self):

    state = State('light.test', 'on', {ATTR_LATITUDE: 124.45, ATTR_LONGITUDE: 124.45})
    state2 = State('light.test', 'on', {ATTR_LATITUDE: 125.45, ATTR_LONGITUDE: 125.45})
    self.assertEqual(state, location.closest(123.45, 123.45, [state, state2]))
