def METHOD_NAME(self):
    """
    ApplicationRunner must raise an exception if given an ssl value of True
    but only a "ws:" URL.
    """
    with replace_loop(Mock()) as loop:
        loop.run_until_complete = Mock(return_value=(Mock(), Mock()))
        runner = ApplicationRunner('ws://127.0.0.1:8080/wss', 'realm',
                                   ssl=True)
        error = (r'^ssl argument value passed to ApplicationRunner '
                 r'conflicts with the "ws:" prefix of the url '
                 r'argument\. Did you mean to use "wss:"\?$')
        self._assertRaisesRegex(Exception, error, runner.run, '_unused_')