Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
cleaner, doesnt have to be really called
Browse files Browse the repository at this point in the history
  • Loading branch information
zeph committed Aug 30, 2019
1 parent 3035004 commit 49ad8e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/testwnettools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 49ad8e4

Please sign in to comment.