diff --git a/tangostationcontrol/tangostationcontrol/test/clients/test_attr_wrapper.py b/tangostationcontrol/tangostationcontrol/test/clients/test_attr_wrapper.py
index 38ad2cce666f5bb435d8f58e2810cf3d62ad7475..eb8fafb1e0e8e7b76f1dd0b416bfaddaa2de2ab5 100644
--- a/tangostationcontrol/tangostationcontrol/test/clients/test_attr_wrapper.py
+++ b/tangostationcontrol/tangostationcontrol/test/clients/test_attr_wrapper.py
@@ -13,12 +13,14 @@ from tango import DevState
 from tangostationcontrol.test.clients.test_client import test_client
 from tangostationcontrol.clients.attribute_wrapper import *
 from tangostationcontrol.devices.lofar_device import *
+import tangostationcontrol.devices.lofar_device
 
 # Test imports
 from tango.test_context import DeviceTestContext
 from tangostationcontrol.test import base
 
 import asyncio
+import mock
 
 scalar_dims = (1,)
 spectrum_dims = (4,)
@@ -38,6 +40,13 @@ def dev_init(device):
 
 
 class TestAttributeTypes(base.TestCase):
+    def setUp(self):
+        # Avoid the device trying to access itself as a client
+        self.deviceproxy_patch = mock.patch.object(tangostationcontrol.devices.lofar_device,'DeviceProxy')
+        self.deviceproxy_patch.start()
+
+    def tearDown(self):
+        self.deviceproxy_patch.stop()
 
     class str_scalar_device(lofar_device):
         scalar_R = attribute_wrapper(comms_annotation="str_scalar_R", datatype=numpy.str)