Even easier:

```python
test_entities = ['strongswan123', 'HSR']
real_entities = tag.entity_set.values_list('name', flat=True)
assert test_entities == real_entities
```