'L{dns._responseFromMessage} returns a new instance of C{cls}'

def test_responseType(self):

    class SuppliedClass(object, ):
        id = 1
        queries = []
    expectedClass = dns.Message
    self.assertIsInstance(dns._responseFromMessage(responseConstructor=expectedClass, message=SuppliedClass()), expectedClass)
