def test_volume_special_type_mbr_and_role(self):
with ExitStack() as resources:
cm = resources.enter_context(
self.assertRaises(GadgetSpecificationError))
parse("""\
volumes:
first-image:
schema: mbr
bootloader: u-boot
structure:
- type: mbr
role: mbr
size: 100
""")
self.assertEqual(
str(cm.exception),
'Type mbr and role fields assigned at the same time, please use '
'the mbr role instead')
评论列表
文章目录