MCPcopy Create free account
hub / github.com/rthalley/dnspython / testMultiline2

Method testMultiline2

tests/test_tokenizer.py:124–134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

122 )
123
124 def testMultiline2(self):
125 tok = dns.tokenizer.Tokenizer("( foo\n\n bar\n)\n")
126 tokens = list(iter(tok))
127 self.assertEqual(
128 tokens,
129 [
130 Token(dns.tokenizer.IDENTIFIER, "foo"),
131 Token(dns.tokenizer.IDENTIFIER, "bar"),
132 Token(dns.tokenizer.EOL, "\n"),
133 ],
134 )
135
136 def testMultiline3(self):
137 with self.assertRaises(dns.exception.SyntaxError):

Callers

nothing calls this directly

Calls 1

TokenClass · 0.85

Tested by

no test coverage detected