def METHOD_NAME():
    class fake:
        def readline(self):
            return 1
    def mock_call():
        return fake()
    class fake_s:
        def text(self):
            return 1
    def mock_call_two():
        return fake_s()
    class fake_a:
        def urlopen(self):
            return 1
    with mock.patch.object(os, "popen", new=mock_call):
        with mock.patch.object(requests, "get", new=mock_call_two):
            urllib.request = MagicMock(return_value=fake_a())
            with pytest.raises(Exception):
                assert utils.networking.get_external_ip()