django_webapps_fullstack.test.test_django_server

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

Classes

test_django_server([methodName])

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

class django_webapps_fullstack.test.test_django_server.test_django_server(methodName='runTest')[source]

Bases: ReadOnlyDjangoTestCase

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

setUp()[source]

Set up test - this test doesn’t need Selenium, only the URL from config. Override parent setUp to skip Selenium WebDriver creation.

tearDown()[source]

Clean up test - no Selenium driver to quit.

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).