* use ram instaed of loop device for unittests

This commit is contained in:
age 2008-02-17 16:37:44 +00:00
parent 22eaddc496
commit e8a4edee6a

View file

@ -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]