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

Method testMultiline1

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

Source from the content-addressed store, hash-verified

111 self.assertTrue(token2.is_eol())
112
113 def testMultiline1(self):
114 tok = dns.tokenizer.Tokenizer("( foo\n\n bar\n)")
115 tokens = list(iter(tok))
116 self.assertEqual(
117 tokens,
118 [
119 Token(dns.tokenizer.IDENTIFIER, "foo"),
120 Token(dns.tokenizer.IDENTIFIER, "bar"),
121 ],
122 )
123
124 def testMultiline2(self):
125 tok = dns.tokenizer.Tokenizer("( foo\n\n bar\n)\n")

Callers

nothing calls this directly

Calls 1

TokenClass · 0.85

Tested by

no test coverage detected