'Test that the StaticFilesConsumer is not used in debug mode when staticfiles app is not configured.'

def test_debug_without_staticfiles(self, mock_worker):

    with self.settings(DEBUG=True, STATIC_URL=None, INSTALLED_APPS=[u'channels']):
        call_command(u'runworker', u'--layer', u'fake_channel')
        mock_worker.assert_called_with(only_channels=None, exclude_channels=None, callback=None, channel_layer=mock.ANY)
        channel_layer = mock_worker.call_args[1][u'channel_layer']
        static_consumer = channel_layer.router.root.routing[0].consumer
        self.assertNotIsInstance(static_consumer, StaticFilesConsumer)
        self.assertIsInstance(static_consumer, ViewConsumer)
