apitest: example has no bios compat part

This commit is contained in:
Dan Bungert 2023-05-10 16:13:22 -06:00
parent c9180f09c1
commit e2d55f50a2
1 changed files with 5 additions and 7 deletions

View File

@ -609,14 +609,12 @@ class TestCore(TestAPI):
await inst.post('/storage/v2/guided', data)
v2resp = await inst.get('/storage/v2')
[d] = v2resp['disks']
[p1, p2, p3, p4, p5] = d['partitions']
e1 = dict(offset=1 << 20, size=1 << 20, mount=None)
[p1, p2, p3, p4] = d['partitions']
e1 = dict(offset=1 << 20, mount='/boot/efi')
self.assertDictSubset(e1, p1)
e2 = dict(offset=2 << 20, mount='/boot/efi')
self.assertDictSubset(e2, p2)
self.assertDictSubset(dict(mount='/boot'), p3)
self.assertDictSubset(dict(mount=None), p4)
self.assertDictSubset(dict(mount='/'), p5)
self.assertDictSubset(dict(mount='/boot'), p2)
self.assertDictSubset(dict(mount=None), p3)
self.assertDictSubset(dict(mount='/'), p4)
class TestAdd(TestAPI):