import itertools


def test_product_combinator(container_, repeat_times):
    """
    cartesian product, equivalent to a nested for-loop

    product('ABCD', repeat=2)
    AA AB AC AD BA BB BC BD CA CB CC CD DA DB DC DD
    """

    return list(itertools.product(container_, repeat=repeat_times))