From 49ad8e46536200068d3d9b675d4324986bb392af Mon Sep 17 00:00:00 2001 From: Guido Serra Date: Fri, 30 Aug 2019 16:38:31 +0200 Subject: [PATCH] cleaner, doesnt have to be really called --- tests/testwnettools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ class TestWnettools(unittest.TestCase): 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)