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