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

Method test_token_value_quotes

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

Source from the content-addressed store, hash-verified

103 self.assertEqual(nrc.hosts['host.domain.com'], ('log', 'acct', value))
104
105 def test_token_value_quotes(self):
106 self._test_token_x("""\
107 machine host.domain.com login "log" password pass account acct
108 """, 'login', 'log')
109 self._test_token_x("""\
110 machine host.domain.com login log password pass account "acct"
111 """, 'account', 'acct')
112 self._test_token_x("""\
113 machine host.domain.com login log password "pass" account acct
114 """, 'password', 'pass')
115
116 def test_token_value_escape(self):
117 self._test_token_x("""\

Callers

nothing calls this directly

Calls 1

_test_token_xMethod · 0.95

Tested by

no test coverage detected