def test_validate_config_missing_required(self):
        """Should return False when required config items are missing."""
        for key in TEST_CONFIG:
            if KEYS_AND_DEFAULTS in key:
                continue
            config = copy(TEST_CONFIG)
            del config[key]
            assert not tcp.Sensor.validate_config(config), (
                "validate_config() should have returned False since %r was not"
                "provided." % key)
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/sensor/test_tcp.py/TestTCPSensor.test_validate_config_missing_required/swapped operands of `in`