def test_ordering(): for n in range(1, 6, 2): for conditions in (CONDITIONS_3, CONDITIONS_6, CONDITIONS_2_3, CONDITIONS_2_3_2): o = Ordering(n) o.first_pass(conditions) yield check_ordering, o, len(conditions)
def test_ordering_generator_condition(): n = 3 o = Ordering(n) o.first_pass(c for c in CONDITIONS_3) yield check_ordering, o, len(CONDITIONS_3)
def test_ordering(): for n in range(1, 6, 2): for conditions in (CONDITIONS_3, CONDITIONS_6, CONDITIONS_2_3, CONDITIONS_2_3_2): o = Ordering(n) o.first_pass(conditions) yield check_ordering, o, len(conditions)
def test_ordering_generator_condition(): n = 3 o = Ordering(n) o.first_pass(c for c in CONDITIONS_3) yield check_ordering, o, len(CONDITIONS_3)