diff --git a/tests/testwnettools.py b/tests/testwnettools.py index a9eecc1..c90956a 100644 --- a/tests/testwnettools.py +++ b/tests/testwnettools.py @@ -21,8 +21,10 @@ def test_find_wired_interface(self, mock_f, mock_os): interfaces = wnettools.GetWiredInterfaces() self.assertTrue('eth0' in interfaces) - def test_wext_is_valid_wpasupplicant_driver(self): + @mock.patch('wicd.misc.Run') + def test_wext_is_valid_wpasupplicant_driver(self, mock_syscall): self.assertTrue(wnettools.IsValidWpaSuppDriver('wext')) + mock_syscall.assert_called_once() def test_needs_external_calls_not_implemented(self): self.assertRaises(NotImplementedError, wnettools.NeedsExternalCalls)