Exemplo n.º 1
0
def test_identation_error():
    lines = [
        (0, 'key0 = 0'),
        (1, '  key1 = 1'),
        (2, ' key2 = 2'),
    ]
    with pytest.raises(zini.ParseError):
        list(zini.tokenize(lines))
Exemplo n.º 2
0
def test_identation_error():
    lines = [
        (0, 'key0 = 0'),
        (1, '  key1 = 1'),
        (2, ' key2 = 2'),
    ]
    with pytest.raises(zini.ParseError):
        list(zini.tokenize(lines))
Exemplo n.º 3
0
def test_tokenize(input, output):
    assert list(zini.tokenize(input)) == output
Exemplo n.º 4
0
def test_tokenize(input, output):
    assert list(zini.tokenize(input)) == output