From fdceb064fe50a22335c0197d54f15626202b1de2 Mon Sep 17 00:00:00 2001 From: 3hhh Date: Sun, 19 Jul 2020 09:06:23 +0200 Subject: [PATCH] tests/callback: ensure missing conf causes errors --- qubes/tests/storage_callback.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qubes/tests/storage_callback.py b/qubes/tests/storage_callback.py index 0b6037e0..cb07c3f5 100644 --- a/qubes/tests/storage_callback.py +++ b/qubes/tests/storage_callback.py @@ -388,3 +388,9 @@ class TC_92_CallbackPool(LoggingCallbackBase, qubes.tests.storage_lvm.ThinPoolBa #missing bdriver args with self.assertRaises(TypeError): cb = qubes.storage.callback.CallbackPool(name='some-name', conf_id='testing-fail-missing-bdriver-args') + +class TC_93_CallbackPool(qubes.tests.QubesTestCase): + def test_001_missing_conf(self): + ''' A missing config file must cause errors. ''' + with self.assertRaises(FileNotFoundError): + cb = qubes.storage.callback.CallbackPool(name='some-name', conf_id='nonexisting-id')