<commit_before>import validators
import six


obj_repr = (
    "ValidationFailure(func=number_range, "
    "args={'max': 5, 'value': 3, 'min': 4})"
)


class TestValidationFailure(object):
    def setup_method(self, method):
        self.obj = validators.number_range(3, min=4, max=5)

    def test_boolean_coerce(self):
        assert not bool(self.obj)
        assert not self.obj

    def test_repr(self):
        assert repr(self.obj) == obj_repr

    def test_unicode(self):
        assert six.text_type(self.obj) == obj_repr

    def test_arguments_as_properties(self):
        assert self.obj.value == 3
        assert self.obj.min == 4
        assert self.obj.max == 5<commit_msg>Made validation failure tests deterministic<commit_after>import validators
import six


obj_repr = (
    "ValidationFailure(func=number_range"
)


class TestValidationFailure(object):
    def setup_method(self, method):
        self.obj = validators.number_range(3, min=4, max=5)

    def test_boolean_coerce(self):
        assert not bool(self.obj)
        assert not self.obj

    def test_repr(self):
        assert obj_repr in repr(self.obj)

    def test_unicode(self):
        assert obj_repr in six.text_type(self.obj)

    def test_arguments_as_properties(self):
        assert self.obj.value == 3
        assert self.obj.min == 4
        assert self.obj.max == 5
{'fraction_non_alphanumeric': 0.10596026490066225, 'fraction_numerical': 0.011037527593818985, 'mean_word_length': 3.0236686390532546, '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': '3376490', 'n_tokens_mistral': 459, 'n_tokens_neox': 430, 'n_words': 99}