(self)
| 57 | data.rstrip(' ')[:-1]) |
| 58 | |
| 59 | def test_optional_tokens(self): |
| 60 | data = ( |
| 61 | "machine host.domain.com", |
| 62 | "machine host.domain.com login", |
| 63 | "machine host.domain.com account", |
| 64 | "machine host.domain.com password", |
| 65 | "machine host.domain.com login \"\" account", |
| 66 | "machine host.domain.com login \"\" password", |
| 67 | "machine host.domain.com account \"\" password" |
| 68 | ) |
| 69 | for item in data: |
| 70 | nrc = self.make_nrc(item) |
| 71 | self.assertEqual(nrc.hosts['host.domain.com'], ('', '', '')) |
| 72 | data = ( |
| 73 | "default", |
| 74 | "default login", |
| 75 | "default account", |
| 76 | "default password", |
| 77 | "default login \"\" account", |
| 78 | "default login \"\" password", |
| 79 | "default account \"\" password" |
| 80 | ) |
| 81 | for item in data: |
| 82 | nrc = self.make_nrc(item) |
| 83 | self.assertEqual(nrc.hosts['default'], ('', '', '')) |
| 84 | |
| 85 | def test_invalid_tokens(self): |
| 86 | data = ( |
nothing calls this directly
no test coverage detected