MCPcopy Index your code
hub / github.com/python/cpython / test_comment_before_machine_line

Method test_comment_before_machine_line

Lib/test/test_netrc.py:196–201  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

194 self.assertEqual(nrc.hosts['bar.domain.com'], ('foo', '', 'pass'))
195
196 def test_comment_before_machine_line(self):
197 self._test_comment("""\
198 # comment
199 machine foo.domain.com login bar password pass
200 machine bar.domain.com login foo password pass
201 """)
202
203 def test_comment_before_machine_line_no_space(self):
204 self._test_comment("""\

Callers

nothing calls this directly

Calls 1

_test_commentMethod · 0.95

Tested by

no test coverage detected