(self)
| 368 | self.assertEqual(out, example_text_output) |
| 369 | |
| 370 | def testToFileBinaryStream(self): |
| 371 | z = dns.zone.from_text(example_text, "example.", relativize=True) |
| 372 | f = BytesIO() |
| 373 | z.to_file(f, nl=b"\n") |
| 374 | out = f.getvalue() |
| 375 | f.close() |
| 376 | self.assertEqual(out, example_text_output.encode()) |
| 377 | |
| 378 | def testToFileTextual(self): |
| 379 | z = dns.zone.from_file(here("example"), "example") |