Esempio n. 1
0
 def test_get_devices_err_devs(self):
     devices = drive_audit.get_devices(output3)
     self.assertEquals(devices, [{'kernel_device': 'sdb',
                                  'mount_point': '/srv/node/sdb1'},
                                 {'kernel_device': 'sdc',
                                  'mount_point': '/srv/node/sdc1'},
                                 {'kernel_device': 'sdd',
                                  'mount_point': '/srv/node/sdd1'}])
Esempio n. 2
0
 def test_get_devices_no_devs(self):
     devices = drive_audit.get_devices(output2)
     self.assertEquals(devices, [])