imporove OS install device detection test

This commit is contained in:
Russell Haering
2014-01-24 15:06:58 -08:00
parent 4bc137b517
commit d37d85bb8a

View File

@@ -40,10 +40,10 @@ class TestGenericHardwareManager(unittest.TestCase):
self.hardware._cmd.return_value = blockdev = mock.Mock()
blockdev.return_value = (
'RO RA SSZ BSZ StartSec Size Device\n'
'rw 256 512 4096 0 31016853504 /dev/sdb\n'
'rw 256 512 4096 0 249578283616 /dev/sda\n'
'rw 256 512 4096 2048 8587837440 /dev/sda1\n'
'rw 256 512 4096 124967424 15728640 /dev/sda2\n'
'rw 256 512 4096 0 31016853504 /dev/sdb\n'
'rw 256 512 4096 0 249578283616 /dev/sdc\n')
self.assertEqual(self.hardware.get_os_install_device(), '/dev/sdb')