'If I{--wsgi} is given an invalid name, L{Options.parseOptions}
raises L{UsageError}.'

def test_invalidApplication(self):

    options = Options()
    for name in [(__name__ + '.nosuchthing'), 'foo.']:
        exc = self.assertRaises(UsageError, options.parseOptions, ['--wsgi', name])
        self.assertEqual(str(exc), ('No    such    WSGI    application:    %r' % (name,)))
