It's a little cleaner to patch the settings object itself:

```python
@patch.object(settings, 'CDN_BASE_URL', '//example.com')
```