* use ram instaed of loop device for unittests
This commit is contained in:
parent
22eaddc496
commit
e8a4edee6a
1 changed files with 3 additions and 3 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue