MCPcopy
hub / github.com/scrapy/scrapy / test_good_credentials

Method test_good_credentials

tests/test_extension_telnet.py:36–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34
35 @inline_callbacks_test
36 def test_good_credentials(self):
37 console, portal = self._get_console_and_portal()
38 creds = credentials.UsernamePassword(
39 console.username.encode("utf8"), console.password.encode("utf8")
40 )
41 d = portal.login(creds, None, ITelnetProtocol)
42 yield d
43 console.stop_listening()
44
45 @inline_callbacks_test
46 def test_custom_credentials(self):

Callers

nothing calls this directly

Calls 3

loginMethod · 0.80
stop_listeningMethod · 0.80

Tested by

no test coverage detected