def METHOD_NAME(self, faker, num_samples):
    provider = CreditCardProvider(faker)
    for prefix in provider.prefix_diners:
        for _ in range(num_samples):
            number = provider._generate_number(prefix, 14)
            assert len(number) == 14
            assert self.diners_club_pattern.fullmatch(number)