MCPcopy
hub / github.com/andialbrecht/sqlparse / test_issue39

Function test_issue39

tests/test_regressions.py:64–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62
63
64def test_issue39():
65 p = sqlparse.parse('select user.id from user')[0]
66 assert len(p.tokens) == 7
67 idt = p.tokens[2]
68 assert idt.__class__ == sql.Identifier
69 assert len(idt.tokens) == 3
70 assert idt.tokens[0].match(T.Name, 'user') is True
71 assert idt.tokens[1].match(T.Punctuation, '.') is True
72 assert idt.tokens[2].match(T.Name, 'id') is True
73
74
75def test_issue40():

Callers

nothing calls this directly

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…