def test_setup_no_zones(self):
        nx584_client.Client.return_value.list_zones.return_value = []
        hass = add_devices = mock.MagicMock()
        self.assertTrue(nx584.setup_platform(hass, {},
                                             add_devices))
        self.assertFalse(add_devices.called)
Test the setup with no zones.
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/binary_sensor/test_nx584.py/TestNX584SensorSetup.test_setup_no_zones