165
166
def test_is_dhcp_enabled_returns_True_if_fully_set_up(self):
167
168
self.assertTrue(factory.make_node_group().is_dhcp_enabled())
169
170
def test_is_dhcp_enabled_returns_False_if_disabled(self):
171
172
self.assertFalse(factory.make_node_group().is_dhcp_enabled())
173
174
def test_is_dhcp_enabled_returns_False_if_config_is_missing(self):
176
177
'subnet_mask', 'broadcast_ip', 'ip_range_low', 'ip_range_high']
177
178
# Map each required field's name to a nodegroup that has just