Пример #1
0
def test_option_expand_mixed_embedded():
    o = Option("test")
    p = Option("embedded", default=1)
    o.set([1, p, 2])
    assert o.expand() == [1, p, 2]
Пример #2
0
def test_option_expand_single_embedded():
    o = Option("test")
    p = Option("embedded", default=1)
    o.set(p)
    assert o.expand() == [p]
Пример #3
0
def test_option_expand_list_embedded():
    o = Option("test")
    p = Option("embedded")
    p.set([1, 2, 3])
    o.set(p)
    assert o.expand() == [p, p, p]
Пример #4
0
def test_option_expand_single_default():
    o = Option("test", default=1)
    assert o.expand() == [1]
Пример #5
0
def test_option_expand_list():
    o = Option("test")
    o.set([1, 2, 3])
    assert o.expand() == [1, 2, 3]
Пример #6
0
def test_option_expand_mixed_embedded():
    o = Option('test')
    p = Option('embedded', default=1)
    o.set([1, p, 2])
    assert o.expand() == [1, p, 2]
Пример #7
0
def test_option_expand_single():
    o = Option("test")
    o.set(1)
    assert o.expand() == [1]
Пример #8
0
def test_option_expand_mixed_embedded():
    o = Option('test')
    p = Option('embedded', default=1)
    o.set([1, p, 2])
    assert o.expand() == [1, p, 2]
Пример #9
0
def test_option_expand_single_embedded():
    o = Option('test')
    p = Option('embedded', default=1)
    o.set(p)
    assert o.expand() == [p]
Пример #10
0
def test_option_expand_list_embedded():
    o = Option('test')
    p = Option('embedded')
    p.set([1, 2, 3])
    o.set(p)
    assert o.expand() == [p, p, p]
Пример #11
0
def test_option_expand_single_embedded():
    o = Option('test')
    p = Option('embedded', default=1)
    o.set(p)
    assert o.expand() == [p]
Пример #12
0
def test_option_expand_list():
    o = Option('test')
    o.set([1, 2, 3])
    assert o.expand() == [1, 2, 3]
Пример #13
0
def test_option_expand_single_default():
    o = Option('test', default=1)
    assert o.expand() == [1]
Пример #14
0
def test_option_expand_single():
    o = Option('test')
    o.set(1)
    assert o.expand() == [1]