(self)
| 44 | |
| 45 | @inline_callbacks_test |
| 46 | def test_custom_credentials(self): |
| 47 | settings = { |
| 48 | "TELNETCONSOLE_USERNAME": "user", |
| 49 | "TELNETCONSOLE_PASSWORD": "pass", |
| 50 | } |
| 51 | console, portal = self._get_console_and_portal(settings=settings) |
| 52 | creds = credentials.UsernamePassword(b"user", b"pass") |
| 53 | d = portal.login(creds, None, ITelnetProtocol) |
| 54 | yield d |
| 55 | console.stop_listening() |
nothing calls this directly
no test coverage detected