(self, mock_cmd)
| 121 | |
| 122 | @mock.patch.object(subprocess, 'check_output') |
| 123 | def test_disregards_invalid_json(self, mock_cmd): |
| 124 | mock_cmd.return_value = '[{"address' |
| 125 | self.assertEqual( |
| 126 | network.InterfaceStatus('eth0', False, None, None), |
| 127 | network.inspect_interface('eth0'), |
| 128 | ) |
| 129 | |
| 130 | |
| 131 | class GetNetworkInterfacesTest(unittest.TestCase): |
nothing calls this directly
no outgoing calls
no test coverage detected