Alternatively, 

```python
ok_(snippet.locale_set.filter(locale=locale_code).exists())
```