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

Function test_passwd_structure

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

Source from the content-addressed store, hash-verified

4import nose.tools as nt
5
6def test_passwd_structure():
7 p = passwd('passphrase')
8 algorithm, salt, hashed = p.split(':')
9 nt.assert_equal(algorithm, 'sha1')
10 nt.assert_equal(len(salt), salt_len)
11 nt.assert_equal(len(hashed), 40)
12
13def test_roundtrip():
14 p = passwd('passphrase')

Callers

nothing calls this directly

Calls 1

passwdFunction · 0.90

Tested by

no test coverage detected