def test_check_security_hash(self):
     kwargs = {'requested': 'crop|50|50'}
     security_hash = AdjustmentHelper.make_security_hash(kwargs)
     self.assertTrue(AdjustmentHelper.check_security_hash(security_hash, kwargs))
Exemple #2
0
 def test_check_security_hash(self):
     kwargs = {'requested': 'crop|50|50'}
     security_hash = AdjustmentHelper.make_security_hash(kwargs)
     self.assertTrue(
         AdjustmentHelper.check_security_hash(security_hash, kwargs))
 def test_make_security_hash(self):
     kwargs = {'requested': 'fill|10|10||'}
     security_hash = AdjustmentHelper.make_security_hash(kwargs)
     self.assertEqual(security_hash, 'd520a2f75d029b2da727')
Exemple #4
0
 def test_make_security_hash(self):
     kwargs = {'requested': 'fill|10|10||'}
     security_hash = AdjustmentHelper.make_security_hash(kwargs)
     self.assertEqual(security_hash, 'd520a2f75d029b2da727')