Beispiel #1
0
 def test_get_error_devices_when_no_errors(self):
     devices = drive_audit.get_error_devices(output1)
     self.assertEquals(devices, {})
Beispiel #2
0
 def test_get_error_devices_when_errors(self):
     devices = drive_audit.get_error_devices(output3)
     self.assertEquals(devices, {'sdb': 516,
                                 'sdb1': 20,
                                 'sdd1': 2,
                                 'sdd': 3})