def METHOD_NAME(self):
    rds = dns.rdataset.Rdataset(dns.rdataclass.IN, dns.rdatatype.A)
    rd1 = dns.rdata.from_text(dns.rdataclass.IN, dns.rdatatype.A, "10.0.0.1")
    rd2 = dns.rdata.from_text(dns.rdataclass.IN, dns.rdatatype.AAAA, "::1")
    rds.add(rd1, 30)
    self.assertRaises(dns.rdataset.IncompatibleTypes, lambda: rds.add(rd2, 30))