MCPcopy Create free account
hub / github.com/ipython/ipython / test_bad

Function test_bad

IPython/lib/tests/test_security.py:17–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 nt.assert_equal(passwd_check(p, 'passphrase'), True)
16
17def test_bad():
18 p = passwd('passphrase')
19 nt.assert_equal(passwd_check(p, p), False)
20 nt.assert_equal(passwd_check(p, 'a:b:c:d'), False)
21 nt.assert_equal(passwd_check(p, 'a:b'), False)
22
23def test_passwd_check_unicode():
24 # GH issue #4524

Callers

nothing calls this directly

Calls 2

passwdFunction · 0.90
passwd_checkFunction · 0.90

Tested by

no test coverage detected