<commit_before>from django.test import TestCase


__all__ = (
    'DBSettingStoreTest',
)


class DBSettingStoreTest(TestCase):
    def makeOne(self):
        from websettings import websettings
        return websettings

    def test_get(self):
        store = self.makeOne()
        self.assertEqual(store.TEST_SETTING, 'before')

    def test_get_with_db(self):
        from websettings.models import Setting
        Setting.objects.create(key='TEST_SETTING', value='after')
        store = self.makeOne()
        self.assertEqual(store.TEST_SETTING, 'after')<commit_msg>Improved names of test methods.<commit_after>from django.test import TestCase


__all__ = (
    'DBSettingStoreTest',
)


class DBSettingStoreTest(TestCase):
    def _getTarget(self):
        from websettings import websettings
        return websettings

    def test_get(self):
        target = self._getTarget()
        self.assertEqual(target.TEST_SETTING, 'before')

    def test_get_with_db(self):
        from websettings.models import Setting
        Setting.objects.create(key='TEST_SETTING', value='after')
        target = self._getTarget()
        self.assertEqual(target.TEST_SETTING, 'after')
{'fraction_non_alphanumeric': 0.09568162574089754, 'fraction_numerical': 0.0, 'mean_word_length': 3.3138686131386863, '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': '3799086', 'n_tokens_mistral': 336, 'n_tokens_neox': 336, 'n_words': 71}