Esempio n. 1
0
 def test_set_boom_path_no_profiles(self):
     boom.set_boot_path(BOOT_ROOT_TEST)
     with self.assertRaises(ValueError) as cm:
         boom.set_boom_path("loader")
Esempio n. 2
0
 def test_set_boom_path_non_abs_bad(self):
     boom.set_boot_path(BOOT_ROOT_TEST + "/boom")
     with self.assertRaises(ValueError) as cm:
         boom.set_boom_path("absolutely/the/wrong/path")
Esempio n. 3
0
 def test_set_boom_path_non_abs(self):
     boom.set_boot_path(BOOT_ROOT_TEST)
     boom.set_boom_path("boom/")
Esempio n. 4
0
 def test_set_boom_path_bad_path(self):
     with self.assertRaises(ValueError) as cm:
         boom.set_boom_path("/the/wrong/path")
Esempio n. 5
0
 def test_set_boom_path(self):
     boom.set_boom_path(BOOT_ROOT_TEST + "/boom")
Esempio n. 6
0
 def test_parse_btrfs_subvol_bad_subvol(self):
     with self.assertRaises(ValueError) as cm:
         boom.parse_btrfs_subvol("foo23foo")
         boom.set_boom_path("loader")