def test_street_address_with_county(self, faker, num_samples):
    'Tests street address with country. A street address must be:\n        - in three rows,\n        - starting with a valid street address,\n        - contain a valid post code,\n        - contain the place name validly capitalized.\n        '
    for _ in range(num_samples):
        address = faker.street_address_with_county()
        assert (len(address.split('\n')) == 3)
        (first, second, last) = address.split('\n')
        assert first[0].isupper()
        assert first.split(' ')[(- 2)][0].islower()
        assert re.fullmatch('\\d{1,4}\\.', first.split(' ')[(- 1)])
        assert second.split(' ')[(- 1)][0].islower()
        assert second.split(' ')[0][0].isupper()
        assert re.fullmatch('H-[1-9]\\d{3}', last.split(' ')[0])
        assert last.split(' ')[(- 1)][0].isupper()
Tests street address with country. A street address must be:
- in three rows,
- starting with a valid street address,
- contain a valid post code,
- contain the place name validly capitalized.
def test_street_address_with_county(self, faker, num_samples):
    'Tests street address with country. A street address must be:\n        - in three rows,\n        - starting with a valid street address,\n        - contain a valid post code,\n        - contain the place name validly capitalized.\n        '
    for _ in range(num_samples):
        address = faker.street_address_with_county()
        assert (len(address.split('\n')) == 3)
        (first, second, last) = address.split('\n')
        assert first[0].isupper()
        assert first.split(' ')[(- 2)][0].islower()
        assert re.fullmatch('\\d{1,4}\\.', first.split(' ')[(- 1)])
        assert second.split(' ')[(- 1)][0].islower()
        assert second.split(' ')[0][0].isupper()
        assert re.fullmatch('H-[1-9]\\d{3}', last.split(' ')[0])
        assert last.split(' ')[(- 1)][0].isupper()