The assertion shouldn't be messy, something like this should work:

```python
self.assertTrue(any(file.endswith(remote_filepath) for file in self.data_layer.media_files)
```

I don't think we care where the file is stored as we're not testing the WebAPI here.