django_landing_simple.test.test_django_server_landing_simple¶
Test if the Django server is running and properly configured with SSL settings
Classes
|
Class for the test cases to test if the Django Server is running including SSL tests |
- class django_landing_simple.test.test_django_server_landing_simple.test_django_server_landing_simple(methodName='runTest')[source]¶
Bases:
ConfigTestCaseClass for the test cases to test if the Django Server is running including SSL tests
- test_server_is_running()[source]¶
Checks if the Django server is running by making a GET request to the specified URL. It expects a 200 status code in response, which indicates the server is running correctly.
- test_ssl_certificate_verification()[source]¶
Ensures that SSL certificate verification works correctly. If the certificate is invalid or untrusted, an SSLError will be raised.