'Setup the tests.'

def test_closest_with_no_states_with_location(self):

    state = State('light.test', 'on')
    state2 = State('light.test', 'on', {ATTR_LATITUDE: 'invalid', ATTR_LONGITUDE: 123.45})
    state3 = State('light.test', 'on', {ATTR_LONGITUDE: 123.45})
    self.assertIsNone(location.closest(123.45, 123.45, [state, state2, state3]))
