test: verify independent guests and recovery on private displays
This commit is contained in:
@@ -33,6 +33,11 @@ class ProfilesTests(unittest.TestCase):
|
||||
with self.subTest(field=field, value=value), self.assertRaises(ValueError):
|
||||
Profile('guest', self.iso, **{field: value})
|
||||
|
||||
def test_invalid_media_path_types(self):
|
||||
for iso in (True, 42, ''):
|
||||
with self.subTest(iso=iso), self.assertRaises(ValueError):
|
||||
Profile('guest', iso)
|
||||
|
||||
def test_duplicate_profile_preserves_existing(self):
|
||||
dest = self.root / 'guest.toml'
|
||||
save_profile(dest, Profile('guest', self.iso))
|
||||
|
||||
Reference in New Issue
Block a user