django_landing_simple.test.test_django_server_landing_simple

Test if the Django server is running and properly configured with SSL settings

Classes

test_django_server_landing_simple([methodName])

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: ConfigTestCase

Class for the test cases to test if the Django Server is running including SSL tests

setUp()[source]

Hook method for setting up the test fixture before exercising it.

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.

test_ssl_configuration()[source]

Attempts to connect to the server using HTTPS to ensure SSL is properly configured. If there’s an SSL error, the test will fail.

test_ssl_eof_error()[source]

Test for SSL EOFError: EOF occurred in violation of protocol (_ssl.c:2427).