Example #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]
Example #2
0
def test_option_expand_single_embedded():
    o = Option("test")
    p = Option("embedded", default=1)
    o.set(p)
    assert o.expand() == [p]
Example #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]
Example #4
0
def test_option_expand_single_default():
    o = Option("test", default=1)
    assert o.expand() == [1]
Example #5
0
def test_option_expand_list():
    o = Option("test")
    o.set([1, 2, 3])
    assert o.expand() == [1, 2, 3]
Example #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]
Example #7
0
def test_option_expand_single():
    o = Option("test")
    o.set(1)
    assert o.expand() == [1]
Example #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]
Example #9
0
def test_option_expand_single_embedded():
    o = Option('test')
    p = Option('embedded', default=1)
    o.set(p)
    assert o.expand() == [p]
Example #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]
Example #11
0
def test_option_expand_single_embedded():
    o = Option('test')
    p = Option('embedded', default=1)
    o.set(p)
    assert o.expand() == [p]
Example #12
0
def test_option_expand_list():
    o = Option('test')
    o.set([1, 2, 3])
    assert o.expand() == [1, 2, 3]
Example #13
0
def test_option_expand_single_default():
    o = Option('test', default=1)
    assert o.expand() == [1]
Example #14
0
def test_option_expand_single():
    o = Option('test')
    o.set(1)
    assert o.expand() == [1]