Exemplo n.º 1
0
def test_parse_identifier(tokens, expected_value, expected_count):
    result, count = _parse_identifier(tokens)

    assert count == expected_count
    assert result == expected_value
Exemplo n.º 2
0
def test_parse_identifier(tokens, expected_value, expected_count):
    result, count = _parse_identifier(tokens)

    assert count == expected_count
    assert result == expected_value
Exemplo n.º 3
0
def test_parse_identifier_with_exception():
    with pytest.raises(InvalidIdentifier):
        _parse_identifier([])
Exemplo n.º 4
0
def test_parse_identifier_with_exception():
    with pytest.raises(InvalidIdentifier):
        _parse_identifier([])