def test_live_stream_contains_variables(self, subscriptions):
        self.login(identity='subscriber@localhost.com')
        response = self.client.get(url_for('stream.live_stream'))

        html = response.data

        assert 'data-faye-public-url="http://localhost:4242/stream"' in html
        assert 'src="http://localhost:4242/stream/client.js"' in html
        assert '<div id="broadcast"></div>' in html
Live stream page has various websocket variables.
dataset/ETHPy150Open nickjj/build-a-saas-app-with-flask/catwatch/tests/stream/test_views.py/TestLiveStream.test_live_stream_contains_variables