コード例 #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