Example #1
0
def test_from_str_list_value():
    assert from_str(_cmdline_list_value) == [
        Parameter('modules-load', ['dwc2', 'g_ether'])
    ]
Example #2
0
def test_load_and_store_keyvalue():
    assert to_str(from_str(_cmdline_keyvalue)) == _cmdline_keyvalue
Example #3
0
def test_from_str_multi_spaces():
    assert from_str(_cmdline_multi_spaces) == [
        Parameter('foo', ['42']),
        Parameter('bar', [])
    ]
Example #4
0
def test_from_str_value_equals_char():
    assert from_str(_cmdline_value_with_eq) == [
        Parameter('root', ['PARTUUID=c0ff14d9-02'])
    ]
Example #5
0
def test_from_str_mixed():
    assert from_str(_cmdline_mixed) == _mixed_cmdline_loaded
Example #6
0
def test_from_str_keyval():
    assert from_str(_cmdline_keyvalue) == [Parameter('console', ['tty1'])]
Example #7
0
def test_from_str_positional():
    assert from_str(_cmdline_rootwait) == [Parameter('rootwait', [])]