From e8a4edee6a07013f1c560d2a8c34b111dd41d2b3 Mon Sep 17 00:00:00 2001 From: age Date: Sun, 17 Feb 2008 16:37:44 +0000 Subject: [PATCH] * use ram instaed of loop device for unittests --- src/cryptobox/tests/test.cryptobox.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cryptobox/tests/test.cryptobox.py b/src/cryptobox/tests/test.cryptobox.py index e6c33bf..cfafdc5 100755 --- a/src/cryptobox/tests/test.cryptobox.py +++ b/src/cryptobox/tests/test.cryptobox.py @@ -41,8 +41,8 @@ class CryptoBoxDeviceTests(CommonTestClass): def test_allowed_devices(self): '''is_device_allowed should accept permitted devices''' - self.assertTrue(self.cb.is_device_allowed("/dev/loop1")) - self.assertTrue(self.cb.is_device_allowed("/dev/pts/../loop1")) + self.assertTrue(self.cb.is_device_allowed("/dev/ram1")) + self.assertTrue(self.cb.is_device_allowed("/dev/pts/../ram1")) def test_denied_devices(self): @@ -69,7 +69,7 @@ class CryptoBoxConfigTests(CommonTestClass): filenames = {} configContentOK = """ [Main] -AllowedDevices = /dev/loop +AllowedDevices = /dev/ram DefaultVolumePrefix = "Data " DefaultCipher = aes-cbc-essiv:sha256 [Locations]