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

Method _test_comment

Lib/test/test_netrc.py:191–194  ·  view source on GitHub ↗
(self, nrc, passwd='pass')

Source from the content-addressed store, hash-verified

189 """, 'password', 'pa#ss')
190
191 def _test_comment(self, nrc, passwd='pass'):
192 nrc = self.make_nrc(nrc)
193 self.assertEqual(nrc.hosts['foo.domain.com'], ('bar', '', passwd))
194 self.assertEqual(nrc.hosts['bar.domain.com'], ('foo', '', 'pass'))
195
196 def test_comment_before_machine_line(self):
197 self._test_comment("""\

Calls 2

make_nrcMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected