diff --git a/tests/unit/states/libvirt_test.py b/tests/unit/states/libvirt_test.py index ec09542052..fc441ecd18 100644 --- a/tests/unit/states/libvirt_test.py +++ b/tests/unit/states/libvirt_test.py @@ -4,6 +4,7 @@ ''' # Import Python libs from __future__ import absolute_import +import os # Import Salt Testing Libs from salttesting import skipIf, TestCase @@ -33,6 +34,7 @@ class LibvirtTestCase(TestCase): ''' # 'keys' function tests: 1 + @skipIf(os.geteuid() != 0, 'you must be root to run this test') @patch('os.path.isfile', MagicMock(return_value=False)) def test_keys(self): '''