--- a/pvl/hosts/tests.py Thu Feb 26 16:05:26 2015 +0200
+++ b/pvl/hosts/tests.py Thu Feb 26 16:08:58 2015 +0200
@@ -252,8 +252,15 @@
ip = '192.0.2.3',
),
]
+
+ rrs = zone.apply_hosts_forward(hosts, 'domain', add_origin=True)
+
+ # handle the $ORIGIN directive
+ rd = next(rrs)
- self.assertZoneEquals(zone.apply_hosts_forward(hosts, 'domain'), {
+ self.assertEquals(unicode(rd), '$ORIGIN\tdomain.')
+
+ self.assertZoneEquals(rrs, {
('foo', 'A'): ['192.0.2.1'],
('foo', 'AAAA'): ['2001:db8::c000:201'],
('test', 'CNAME'): ['foo'],