<commit_before>from unittest import TestCase

from plotly import tools
from plotly import session


class FileToolsTest(TestCase):

    def test_set_config_file_all_entries(self):

        # Check set_config and get_config return the same values

        pd, ps, pa = 'this', 'thing', 'that'
        psv = False
        po = {'world_readable': False}
        tools.set_config_file(plotly_domain=pd,
                              plotly_streaming_domain=ps,
                              plotly_api_domain=pa,
                              plotly_ssl_verification=psv,
                              plot_options=po)
        config = tools.get_config_file()
        self.assertEqual(config['plotly_domain'], pd)
        self.assertEqual(config['plotly_streaming_domain'], ps)
        self.assertEqual(config['plotly_api_domain'], pa)
        self.assertEqual(config['plotly_ssl_verification'], psv)<commit_msg>Update test_file_tools to use `PlotlyTestCase`<commit_after>from plotly import tools
from plotly import session
from plotly.tests.utils import PlotlyTestCase


class FileToolsTest(PlotlyTestCase):

    def test_set_config_file_all_entries(self):

        # Check set_config and get_config return the same values

        pd, ps, pa = 'this', 'thing', 'that'
        psv = False
        po = {'world_readable': False}
        tools.set_config_file(plotly_domain=pd,
                              plotly_streaming_domain=ps,
                              plotly_api_domain=pa,
                              plotly_ssl_verification=psv,
                              plot_options=po)
        config = tools.get_config_file()
        self.assertEqual(config['plotly_domain'], pd)
        self.assertEqual(config['plotly_streaming_domain'], ps)
        self.assertEqual(config['plotly_api_domain'], pa)
        self.assertEqual(config['plotly_ssl_verification'], psv)
{'fraction_non_alphanumeric': 0.08342245989304813, 'fraction_numerical': 0.0, 'mean_word_length': 2.4267399267399266, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '6266633', 'n_tokens_mistral': 527, 'n_tokens_neox': 513, 'n_words': 103}