Ejemplo n.º 1
0
def test_protocol_signatures(element):
    with pytest.raises(ValueError):
        normalize(element)
Ejemplo n.º 2
0
def test_unknown():
    with pytest.raises(NotImplementedError, match="cannot be represented"):
        normalize(object)
Ejemplo n.º 3
0
def test_callable_signatures(typing_type, element):
    assert typing_type == unparse(normalize(element))
Ejemplo n.º 4
0
def test_shorthands(typing_type, element):
    assert typing_type == unparse(normalize(element))
Ejemplo n.º 5
0
def test_containers(typing_type, element):
    assert typing_type == unparse(normalize(element))
Ejemplo n.º 6
0
def test_specials(typing_type, element):
    assert typing_type == unparse(normalize(element))
Ejemplo n.º 7
0
def test_terminals(typing_type, element):
    assert typing_type == unparse(normalize(element))