Updated test to account for additional flag

This commit is contained in:
Dave Rawks 2014-09-05 10:08:17 -07:00
parent 22bf8b1f00
commit 873ca1e0b1

View File

@ -37,7 +37,7 @@ class MdadmTestCase(TestCase):
)
self.assertEqual('salt', ret)
mock.assert_called_once_with(
'mdadm -C /dev/md0 -v --chunk=256 --force -l 5 -n 3 '
'mdadm -C /dev/md0 -v --chunk=256 --force -l 5 -e default -n 3 '
'/dev/sdb1 /dev/sdc1 /dev/sdd1'
)
@ -53,7 +53,7 @@ class MdadmTestCase(TestCase):
chunk=256,
test_mode=True
)
self.assertEqual('mdadm -C /dev/md0 -v --chunk=256 --force -l 5 -n 3 '
self.assertEqual('mdadm -C /dev/md0 -v --chunk=256 --force -l 5 -e default -n 3 '
'/dev/sdb1 /dev/sdc1 /dev/sdd1', ret)
assert not mock.called, 'test mode failed, cmd.run called'