Exemplo n.º 1
0
 def test_mount_flags_many(self):
     partition = '/dev/sdb1'
     mountpoint = '/mnt/resource'
     options = 'noexec,noguid,nodev'
     expected = 'mount -t ext3 -o noexec,noguid,nodev /dev/sdb1 /mnt/resource'
     rdh = ResourceDiskHandler()
     mount_string = rdh.get_mount_string(options, partition, mountpoint)
     self.assertEqual(expected, mount_string)
Exemplo n.º 2
0
 def test_mount_flags_many(self):
     partition = '/dev/sdb1'
     mountpoint = '/mnt/resource'
     options = 'noexec,noguid,nodev'
     expected = 'mount -o noexec,noguid,nodev /dev/sdb1 /mnt/resource'
     rdh = ResourceDiskHandler()
     mount_string = rdh.get_mount_string(options, partition, mountpoint)
     self.assertEqual(expected, mount_string)
Exemplo n.º 3
0
 def test_mount_flags_empty(self):
     partition = '/dev/sdb1'
     mountpoint = '/mnt/resource'
     options = None
     expected = 'mount -t ext3 /dev/sdb1 /mnt/resource'
     rdh = ResourceDiskHandler()
     mount_string = rdh.get_mount_string(options, partition, mountpoint)
     self.assertEqual(expected, mount_string)
Exemplo n.º 4
0
 def test_mount_flags_empty(self):
     partition = '/dev/sdb1'
     mountpoint = '/mnt/resource'
     options = None
     expected = 'mount /dev/sdb1 /mnt/resource'
     rdh = ResourceDiskHandler()
     mount_string = rdh.get_mount_string(options, partition, mountpoint)
     self.assertEqual(expected, mount_string)