def test_render_to_response_file_not_found(self):
        # Setup.
        mixin = views.DownloadMixin()
        mixin.request = django.test.RequestFactory().get('/dummy-url')
        mixin.get_file = mock.Mock(side_effect=exceptions.FileNotFound)
        mixin.file_not_found_response = mock.Mock()
        # Run.
        mixin.render_to_response()
        # Check.
        mixin.file_not_found_response.assert_called_once_with()
Send play command.
dataset/ETHPy150Open benoitbryon/django-downloadview/tests/views.py/DownloadMixinTestCase.test_render_to_response_file_not_found--crossover with--dataset/ETHPy150Open balloob/pychromecast/pychromecast/controllers/plex.py/PlexController.play