<commit_before># coding=utf-8

from __future__ import unicode_literals

import unittest
import re

from faker import Factory


class hu_HU_FactoryTestCase(unittest.TestCase):
    def setUp(self):
        self.factory = Factory.create('hu_HU')

    def test_hungarian_postcodes_for_consistency(self):
        # Hungarian postcodes may not begin with a zero. This test case tests for consistency with that rule.

        from faker.providers.address.hu_HU import Provider

        for i in range(100):
            pcd = Provider.postcode()
            assert pcd[2] > 0<commit_msg>Wrong postcode format bug (silly... :S) fixed.<commit_after># coding=utf-8

from __future__ import unicode_literals

import unittest
import re

from faker import Factory


class hu_HU_FactoryTestCase(unittest.TestCase):
    def setUp(self):
        self.factory = Factory.create('hu_HU')

    def test_hungarian_postcodes_for_consistency(self):
        # Hungarian postcodes may not begin with a zero. This test case tests for consistency with that rule.

        from faker.providers.address.hu_HU import Provider

        for i in range(100):
            pcd = Provider.postcode()
            assert pcd[2] > "0"
{'fraction_non_alphanumeric': 0.07292539815590947, 'fraction_numerical': 0.010058675607711651, 'mean_word_length': 3.1894736842105265, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '493383', 'n_tokens_mistral': 373, 'n_tokens_neox': 341, 'n_words': 109}