'Two L{dns.Record_NAPTR} instances compare equal if and only if they
have the same order, preference, flags, service, regexp, replacement,
and ttl.'

def test_naptr(self):

    self._equalityTest(dns.Record_NAPTR(1, 2, 'u', 'sip+E2U', '/foo/bar/', 'baz', 12), dns.Record_NAPTR(1, 2, 'u', 'sip+E2U', '/foo/bar/', 'baz', 12), dns.Record_NAPTR(2, 2, 'u', 'sip+E2U', '/foo/bar/', 'baz', 12))
    self._equalityTest(dns.Record_NAPTR(1, 2, 'u', 'sip+E2U', '/foo/bar/', 'baz', 12), dns.Record_NAPTR(1, 2, 'u', 'sip+E2U', '/foo/bar/', 'baz', 12), dns.Record_NAPTR(1, 3, 'u', 'sip+E2U', '/foo/bar/', 'baz', 12))
    self._equalityTest(dns.Record_NAPTR(1, 2, 'u', 'sip+E2U', '/foo/bar/', 'baz', 12), dns.Record_NAPTR(1, 2, 'u', 'sip+E2U', '/foo/bar/', 'baz', 12), dns.Record_NAPTR(1, 2, 'p', 'sip+E2U', '/foo/bar/', 'baz', 12))
    self._equalityTest(dns.Record_NAPTR(1, 2, 'u', 'sip+E2U', '/foo/bar/', 'baz', 12), dns.Record_NAPTR(1, 2, 'u', 'sip+E2U', '/foo/bar/', 'baz', 12), dns.Record_NAPTR(1, 2, 'u', 'http', '/foo/bar/', 'baz', 12))
    self._equalityTest(dns.Record_NAPTR(1, 2, 'u', 'sip+E2U', '/foo/bar/', 'baz', 12), dns.Record_NAPTR(1, 2, 'u', 'sip+E2U', '/foo/bar/', 'baz', 12), dns.Record_NAPTR(1, 2, 'u', 'sip+E2U', '/bar/foo/', 'baz', 12))
    self._equalityTest(dns.Record_NAPTR(1, 2, 'u', 'sip+E2U', '/foo/bar/', 'baz', 12), dns.Record_NAPTR(1, 2, 'u', 'sip+E2U', '/foo/bar/', 'baz', 12), dns.Record_NAPTR(1, 2, 'u', 'sip+E2U', '/bar/foo/', 'quux', 12))
    self._equalityTest(dns.Record_NAPTR(1, 2, 'u', 'sip+E2U', '/foo/bar/', 'baz', 12), dns.Record_NAPTR(1, 2, 'u', 'sip+E2U', '/foo/bar/', 'baz', 12), dns.Record_NAPTR(1, 2, 'u', 'sip+E2U', '/bar/foo/', 'baz', 5))
