mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-17 05:28:03 +00:00
28 lines
540 B
Python
28 lines
540 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
Unit tests for WSGI
|
|
"""
|
|
import unittest
|
|
|
|
import os
|
|
import django
|
|
|
|
os.environ["DJANGO_SETTINGS_MODULE"] = "ivatar.settings"
|
|
django.setup()
|
|
|
|
|
|
class TestCase(unittest.TestCase):
|
|
"""
|
|
Simple testcase to see if WSGI loads correctly
|
|
"""
|
|
|
|
def test_run_wsgi(self):
|
|
"""
|
|
Run wsgi import
|
|
"""
|
|
import ivatar.wsgi # pylint: disable=import-outside-toplevel
|
|
|
|
self.assertEqual(
|
|
ivatar.wsgi.application.__class__, django.core.handlers.wsgi.WSGIHandler
|
|
)
|