'Test for operational tube_state sensor with proper attributes.'

@requests_mock.Mocker()
def test_setup(self, mock_req):

    mock_req.get(URL, text=load_fixture('london_underground.json'))
    self.assertTrue(setup_component(self.hass, 'sensor', {'sensor': self.config}))
    state = self.hass.states.get('sensor.london_overground')
    assert (state.state == 'Minor    Delays')
    assert (state.attributes.get('Description') == 'something')
