示例#1
0
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
示例#2
0
def test_limit_ordered_from_domain_empty_ok():
    assert pr.limit_ordered_from_domain([]) == 'NULL'
示例#3
0
def test_limit_ordered_from_domain_with_limit_value_ok():
    assert pr.limit_ordered_from_domain(
        ('LIMIT_VALUE', 42, False, {})) == 'LIMIT_VALUE'
示例#4
0
def test_limit_ordered_from_domain_sample_two_ok():
    assert pr.limit_ordered_from_domain(ORDERED_SAMPLE_TWO) == 'LIMIT_VALUE'
示例#5
0
def test_limit_ordered_from_domain_sample_one_ok():
    assert pr.limit_ordered_from_domain(ORDERED_SAMPLE_ONE) == '2b'
示例#6
0
def test_limit_ordered_from_domain_minimal_even_ok():
    assert pr.limit_ordered_from_domain([0, 0, 1, 0]) == 1