def test_limit_ordered_from_domain_odd_ok(): assert pr.limit_ordered_from_domain( [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]) == 1
def test_limit_ordered_from_domain_empty_ok(): assert pr.limit_ordered_from_domain([]) == 'NULL'
def test_limit_ordered_from_domain_with_limit_value_ok(): assert pr.limit_ordered_from_domain( ('LIMIT_VALUE', 42, False, {})) == 'LIMIT_VALUE'
def test_limit_ordered_from_domain_sample_two_ok(): assert pr.limit_ordered_from_domain(ORDERED_SAMPLE_TWO) == 'LIMIT_VALUE'
def test_limit_ordered_from_domain_sample_one_ok(): assert pr.limit_ordered_from_domain(ORDERED_SAMPLE_ONE) == '2b'
def test_limit_ordered_from_domain_minimal_even_ok(): assert pr.limit_ordered_from_domain([0, 0, 1, 0]) == 1