Coverage for sm / test_wsgi.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-03-24 12:43 +0000

1import unittest 

2 

3import os 

4import django 

5 

6os.environ["DJANGO_SETTINGS_MODULE"] = "sm.settings" 

7django.setup() 

8 

9 

10class TestCase(unittest.TestCase): 

11 def test_run_wsgi(self): 

12 import sm.wsgi 

13 

14 self.assertEqual( 

15 sm.wsgi.application.__class__, django.core.handlers.wsgi.WSGIHandler 

16 )