コード例 #1
0
 def test_encrypt(self):
     self.assertEqual(
         password._format_content(password=u'hunter42',
                                  salt=u'87654321',
                                  encrypt='pbkdf2_sha256'),
         u'hunter42 salt=87654321')
コード例 #2
0
 def test_no_encrypt_no_salt(self):
     self.assertEqual(
         password._format_content(password=u'hunter42',
                                  salt=None,
                                  encrypt=False), u'hunter42')
コード例 #3
0
 def test_no_encrypt(self):
     self.assertEqual(
         password._format_content(password=u'hunter42',
                                  salt=u'87654321',
                                  encrypt=False), u'hunter42 salt=87654321')
コード例 #4
0
ファイル: test_password.py プロジェクト: 2ndQuadrant/ansible
 def test_encrypt(self):
     self.assertEqual(
             password._format_content(password=u'hunter42',
                                      salt=u'87654321',
                                      encrypt='pbkdf2_sha256'),
             u'hunter42 salt=87654321')
コード例 #5
0
ファイル: test_password.py プロジェクト: 2ndQuadrant/ansible
 def test_no_encrypt_no_salt(self):
     self.assertEqual(
             password._format_content(password=u'hunter42',
                                      salt=None,
                                      encrypt=False),
             u'hunter42')
コード例 #6
0
ファイル: test_password.py プロジェクト: 2ndQuadrant/ansible
 def test_no_encrypt(self):
     self.assertEqual(
             password._format_content(password=u'hunter42',
                                      salt=u'87654321',
                                      encrypt=False),
             u'hunter42 salt=87654321')