def _test_assert_graceful_fail(self, config):
        hass = add_devices = mock.MagicMock()
        self.assertFalse(nx584.setup_platform(hass, config,
                                              add_devices))
        self.assertFalse(add_devices.called)
Test the failing.
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/binary_sensor/test_nx584.py/TestNX584SensorSetup._test_assert_graceful_fail