self.assertEquals(msg.id, query.id)
self.assertTrue(msg.HasField('inBytes'))
if normalQueryResponse:
- # compare inBytes with length off query/response
+ # compare inBytes with length of query/response
# Note that for responses, the size we received might differ
# because dnspython might compress labels differently from
# the recursor
if length is not None:
self.assertEquals(msg.inBytes, length)
else:
- # compare inBytes with length off query/response
+ # compare inBytes with length of query/response
self.assertEquals(msg.inBytes, len(query.to_wire()))
def checkProtobufQuery(self, msg, protocol, query, qclass, qtype, qname, initiator='127.0.0.1'):
_confdir = 'OutgoingProtobufDefault'
_config_template = """
- # Switch of QName Minimization, it generates much more protobuf messages
+ # Switch off QName Minimization, it generates much more protobuf messages
# (or make the test much more smart!)
qname-minimization=no
auth-zones=example=configs/%s/example.zone""" % _confdir
_confdir = 'OutgoingProtobufNoQueries'
_config_template = """
- # Switch of QName Minimization, it generates much more protobuf messages
+ # Switch off QName Minimization, it generates much more protobuf messages
# (or make the test much more smart!)
qname-minimization=no
auth-zones=example=configs/%s/example.zone""" % _confdir