diff --git a/src/django_fields/tests.py b/src/django_fields/tests.py index 43080c8..38698e7 100644 --- a/src/django_fields/tests.py +++ b/src/django_fields/tests.py @@ -106,20 +106,17 @@ def test_encryption_w_cipher(self): def test_multiple_encryption_w_cipher(self): """ - Test that the database values are actually encrypted when using - non-default cipher types. + Test that a single field can be reused without error. """ - password = 'this is a password!!' # 20 chars - obj = CipherEncObject(password = password) + password = 'this is a password!!' + obj = CipherEncObject(password=password) obj.save() - # The value from the retrieved object should be the same... obj = CipherEncObject.objects.get(id=obj.id) self.assertEqual(password, obj.password) - password = 'another password!!' # 20 chars - obj = CipherEncObject(password = password) + password = 'another password!!' + obj = CipherEncObject(password=password) obj.save() - # The value from the retrieved object should be the same... obj = CipherEncObject.objects.get(id=obj.id) self.assertEqual(password, obj.password)