'Register the local device to a zone (dummy zone if none specified).'

@classmethod
def register_device(cls, zone=None):

    zone = (zone or Zone.objects.create(name='test_zone'))
    DeviceZone.objects.create(zone=zone, device=Device.get_own_device())
