|
|
|
@ -869,9 +869,7 @@ class TestRecordValidation(TestCase): |
|
|
|
|
|
|
|
def test_records_have_rdata_methods(self): |
|
|
|
for _type, cls in Record.registered_types().items(): |
|
|
|
print(f'{_type} {cls}') |
|
|
|
attr = 'parse_rdata_texts' |
|
|
|
print(f' {attr}') |
|
|
|
method = getattr(cls, attr) |
|
|
|
self.assertTrue(method, f'{_type}, {cls} has {attr}') |
|
|
|
self.assertTrue( |
|
|
|
@ -882,7 +880,6 @@ class TestRecordValidation(TestCase): |
|
|
|
self.assertTrue(value_type, f'{_type}, {cls} has _value_type') |
|
|
|
|
|
|
|
attr = 'parse_rdata_text' |
|
|
|
print(f' {attr}') |
|
|
|
method = getattr(value_type, attr) |
|
|
|
self.assertTrue(method, f'{_type}, {cls} has {attr}') |
|
|
|
self.assertTrue( |
|
|
|
|