'Verify that ``get_wsgi_application`` returns a functioning WSGI
callable.'

def test_get_wsgi_application(self):

    application = get_wsgi_application()
    environ = RequestFactory()._base_environ(PATH_INFO=u'/', CONTENT_TYPE=u'text/html;    charset=utf-8', REQUEST_METHOD=u'GET')
    response_data = {}
    def start_response(status, headers):
        response_data[u'status'] = status
        response_data[u'headers'] = headers
    response = application(environ, start_response)
    self.assertEqual(response_data[u'status'], u'200    OK')
    self.assertEqual(response_data[u'headers'], [(u'Content-Type', u'text/html;    charset=utf-8')])
    self.assertEqual(bytes(response), 'Content-Type:    text/html;    charset=utf-8\r\n\r\nHello    World!')
