MCPcopy Create free account
hub / github.com/python/cpython / test_toplevel_tokens

Method test_toplevel_tokens

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

Source from the content-addressed store, hash-verified

31 self.assertEqual(nrc.hosts['default'], ('log2', 'acct2', 'pass2'))
32
33 def test_toplevel_tokens(self):
34 nrc = self.make_nrc("""\
35 machine host.domain.com login log1 password pass1 account acct1
36 default login log2 password pass2 account acct2
37 """)
38 self.assertEqual(nrc.hosts['host.domain.com'], ('log1', 'acct1', 'pass1'))
39 self.assertEqual(nrc.hosts['default'], ('log2', 'acct2', 'pass2'))
40
41 def test_macros(self):
42 data = """\

Callers

nothing calls this directly

Calls 2

make_nrcMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected