def test_with_complete_information(self):
        """
        Run a test and return all available informations.

        .. note::
            The following are the indexes which we return.
            Please report to the advanced usage documentation for a
            description of each indexes.

            ::

                {
                    "whois_server": None,
                    "whois_record": None,
                    "url_syntax_validation": None,
                    "tested": None,
                    "status": None,
                    "status_source": None,
                    "nslookup": [],
                    "ip4_syntax_validation": None,
                    "http_status_code": None,
                    "expiration_date": None,
                    "domain_syntax_validation": None,
                    "_status": None,
                    "_status_source": None,
                }
        """

        # We initiate the location and the information we have to return.
        PyFunceble.INTERN["current_test_data"] = {
            "whois_server": None,
            "whois_record": None,
            "url_syntax_validation": None,
            "tested": None,
            "status": None,
            "status_source": None,
            "nslookup": [],
            "ip4_syntax_validation": None,
            "http_status_code": None,
            "expiration_date": None,
            "domain_syntax_validation": None,
            "_status": None,
            "_status_source": None,
        }

        if "to_test" in PyFunceble.INTERN and PyFunceble.INTERN["to_test"]:
            # We are testing something.

            # We update the tested index.
            PyFunceble.INTERN["current_test_data"]["tested"] = PyFunceble.INTERN[
                "to_test"
            ]

            if PyFunceble.INTERN["to_test_type"] == "domain":
                # We are testing a domain.

                # We get the status and the source of the domain.
                PyFunceble.INTERN["current_test_data"]["status"], PyFunceble.INTERN[
                    "current_test_data"
                ]["status_source"] = self.status.get()
            elif PyFunceble.INTERN["to_test_type"] == "url":
                # We are testing a url.

                # We get the status of the url.
                PyFunceble.INTERN["current_test_data"]["status"] = self.url_status.get()
            else:
                raise Exception("Unknow test type.")

        if "http_code" in PyFunceble.INTERN:
            # The http status code exist into the configuration.

            # We update the tested index.
            PyFunceble.INTERN["current_test_data"][
                "http_status_code"
            ] = PyFunceble.INTERN["http_code"]

        if "referer" in PyFunceble.INTERN:
            # The referer exist into the internal memory.

            # We update the related index.
            PyFunceble.INTERN["current_test_data"]["whois_server"] = PyFunceble.INTERN[
                "referer"
            ]

        return PyFunceble.INTERN["current_test_data"]
def test_with_complete_information ( self ) : PyFunceble . INTERN [ "current_test_data" ] = { "whois_server" : None , "whois_record" : None , "url_syntax_validation" : None , "tested" : None , "status" : None , "status_source" : None , "nslookup" : [ ] , "ip4_syntax_validation" : None , "http_status_code" : None , "expiration_date" : None , "domain_syntax_validation" : None , "_status" : None , "_status_source" : None , } if "to_test" in PyFunceble . INTERN and PyFunceble . INTERN [ "to_test" ] : PyFunceble . INTERN [ "current_test_data" ] [ "tested" ] = PyFunceble . INTERN [ "to_test" ] if PyFunceble . INTERN [ "to_test_type" ] == "domain" : PyFunceble . INTERN [ "current_test_data" ] [ "status" ] , PyFunceble . INTERN [ "current_test_data" ] [ "status_source" ] = self . status . get ( ) elif PyFunceble . INTERN [ "to_test_type" ] == "url" : PyFunceble . INTERN [ "current_test_data" ] [ "status" ] = self . url_status . get ( ) else : raise Exception ( "Unknow test type." ) if "http_code" in PyFunceble . INTERN : PyFunceble . INTERN [ "current_test_data" ] [ "http_status_code" ] = PyFunceble . INTERN [ "http_code" ] if "referer" in PyFunceble . INTERN : PyFunceble . INTERN [ "current_test_data" ] [ "whois_server" ] = PyFunceble . INTERN [ "referer" ] return PyFunceble . INTERN [ "current_test_data" ]
Run a test and return all available informations.

        .. note::
            The following are the indexes which we return.
            Please report to the advanced usage documentation for a
            description of each indexes.

            ::

                {
                    "whois_server": None,
                    "whois_record": None,
                    "url_syntax_validation": None,
                    "tested": None,
                    "status": None,
                    "status_source": None,
                    "nslookup": [],
                    "ip4_syntax_validation": None,
                    "http_status_code": None,
                    "expiration_date": None,
                    "domain_syntax_validation": None,
                    "_status": None,
                    "_status_source": None,
                }