def test_invalid_config(self): """Test configuration with defaults.""" config = {"statsd": {"host1": "host1"}} with pytest.raises(vol.Invalid): statsd.CONFIG_SCHEMA(None) with pytest.raises(vol.Invalid): statsd.CONFIG_SCHEMA(config)
def test_invalid_config(self): """Test configuration with defaults.""" config = { 'statsd': { 'host1': 'host1', } } with self.assertRaises(vol.Invalid): statsd.CONFIG_SCHEMA(None) with self.assertRaises(vol.Invalid): statsd.CONFIG_SCHEMA(config)