コード例 #1
0
ファイル: test_authcookie.py プロジェクト: pmp-p/M2Crypto
 def test_mix_unmix(self):
     dough = mix(self.exp, self.data)
     exp, data = unmix(dough)
     self.assertEqual(data, self.data)
     # we are comparing seconds here, ten-thousandth
     # second should be enough.
     self.assertAlmostEqual(exp, self.exp, places=4)
コード例 #2
0
ファイル: test_authcookie.py プロジェクト: appknox/m2crypto
 def test_mix_unmix(self):
     dough = mix(self.exp, self.data)
     exp, data = unmix(dough)
     self.assertEqual(data, self.data)
     # we are comparing seconds here, ten-thousandth
     # second should be enough.
     self.assertAlmostEqual(exp, self.exp, places=4)
コード例 #3
0
 def test_mix_unmix(self):
     dough = mix(self.exp, self.data)
     exp, data = unmix(dough)
     self.failUnlessEqual(data, self.data)
     self.failUnlessEqual(exp, self.exp)
コード例 #4
0
ファイル: test_authcookie.py プロジェクト: Hypernode/M2Crypto
 def test_mix_unmix(self):
     dough = mix(self.exp, self.data)
     exp, data = unmix(dough)
     self.failUnlessEqual(data, self.data)
     self.failUnlessEqual(exp, self.exp)
コード例 #5
0
 def test_mix_unmix(self):
     dough = mix(self.exp, self.data)
     exp, data = unmix(dough)
     self.assertEqual(data, self.data)
     self.assertEqual(exp, self.exp)
コード例 #6
0
ファイル: test_authcookie.py プロジェクト: pywbem/m2crypto
 def test_mix_unmix(self):
     dough = mix(self.exp, self.data)
     exp, data = unmix(dough)
     self.assertEqual(data, self.data)
     self.assertEqual(exp, self.exp)