Esempio n. 1
0
 def test_parse_hdparm_output2(self):
     return self.assertEqual(
         diskinfo.parse_hdparm_output(
             '\n/dev/sdc:\n Timing buffered disk reads:  30 MB in  3.01 seconds =   9.97 MB/sec\n'
         ), 9.97)
Esempio n. 2
0
 def test_parse_hdparm_output2(self):
     return self.assertEqual(
         diskinfo.parse_hdparm_output(
             '\n/dev/sdc:\n Timing buffered disk reads:  30 MB in  3.01 seconds =   9.97 MB/sec\n'),
         9.97)
Esempio n. 3
0
 def test_parse_hdparm_output(self):
     return self.assertEqual(
         diskinfo.parse_hdparm_output(
             '\n/dev/sda:\n Timing buffered disk reads: 1436 MB in  3.00 seconds = 478.22 MB/sec'
         ), 478.22)
Esempio n. 4
0
 def test_parse_hdparm_output(self):
     return self.assertEqual(
         diskinfo.parse_hdparm_output(
             '\n/dev/sda:\n Timing buffered disk reads: 1436 MB in  3.00 seconds = 478.22 MB/sec'),
         478.22)