def test_unknownTypeNXDOMAIN(self):
        """
        Requesting a record of unknown type where no records exist for the name
        in question results in L{DomainError}.
        """
        testDomain = test_domain_com
        testDomainName = b'nonexistent.prefix-' + testDomain.soa[0]
        unknownType = max(common.typeToMethod) + 1
        f = self.failureResultOf(
            testDomain.query(Query(name=testDomainName, type=unknownType)))
        self.assertIsInstance(f.value, DomainError)

        Requesting a record of unknown type where no records exist for the name
        in question results in L{DomainError}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_names.py