(self, nrc, token, value)
| 94 | self.assertRaises(netrc.NetrcParseError, self.make_nrc, item) |
| 95 | |
| 96 | def _test_token_x(self, nrc, token, value): |
| 97 | nrc = self.make_nrc(nrc) |
| 98 | if token == 'login': |
| 99 | self.assertEqual(nrc.hosts['host.domain.com'], (value, 'acct', 'pass')) |
| 100 | elif token == 'account': |
| 101 | self.assertEqual(nrc.hosts['host.domain.com'], ('log', value, 'pass')) |
| 102 | elif token == 'password': |
| 103 | self.assertEqual(nrc.hosts['host.domain.com'], ('log', 'acct', value)) |
| 104 | |
| 105 | def test_token_value_quotes(self): |
| 106 | self._test_token_x("""\ |
no test coverage detected