<commit_before>from tornado.httpclient import HTTPRequest
import json
import os.path
import json
import shutil
from xml.etree import ElementTree as ET

from util import generate_filename
from util import make_trace_folder

from tests.base import BaseRecorderTestCase


class VisualizationTestCase(BaseRecorderTestCase):
    def test_no_data(self):
        self.http_client.fetch(self.get_url('/visualization'), self.stop)
        response = self.wait()
        assert 'class="vehicle"' in response.body<commit_msg>Update test case for visualization page.<commit_after>from tornado.httpclient import HTTPRequest
import json
import os.path
import json
import shutil
from xml.etree import ElementTree as ET

from util import generate_filename
from util import make_trace_folder

from tests.base import BaseRecorderTestCase


class VisualizationTestCase(BaseRecorderTestCase):
    def test_no_data(self):
        self.http_client.fetch(self.get_url('/visualization'), self.stop)
        response = self.wait()
        assert "measurement" in response.body
{'fraction_non_alphanumeric': 0.06470028544243578, 'fraction_numerical': 0.0, 'mean_word_length': 4.943502824858757, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3683919', 'n_tokens_mistral': 286, 'n_tokens_neox': 276, 'n_words': 88}