def test_parses_whitespace_values(self): output = 'NAME="sdaa5" PARTLABEL="ceph data" RM="0" SIZE="10M" RO="0" TYPE="part"' result = disk._lsblk_parser(output) assert result['PARTLABEL'] == 'ceph data'
def test_parses_whitespace_values(self): output = 'NAME="sdaa5" PARTLABEL="ceph data" RM="0" SIZE="10M" RO="0" TYPE="part"' result = disk._lsblk_parser(output) assert result['PARTLABEL'] == 'ceph data'
def test_ignores_bogus_pairs(self): output = 'NAME="sdaa5" PARTLABEL RM="0" SIZE="10M" RO="0" TYPE="part" MOUNTPOINT=""' result = disk._lsblk_parser(output) assert result['SIZE'] == '10M'
def test_ignores_bogus_pairs(self): output = 'NAME="sdaa5" PARTLABEL RM="0" SIZE="10M" RO="0" TYPE="part" MOUNTPOINT=""' result = disk._lsblk_parser(output) assert result['SIZE'] == '10M'