1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-28 17:32:36 +01:00

cleaner, doesnt have to be really called

This commit is contained in:
Guido Serra
2019-08-30 16:38:31 +02:00
parent 3035004c6d
commit 49ad8e4653

View File

@@ -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)