Revision dd93f602
Added by Dmitri Dolguikh almost 8 years ago
test/dhcp/subnet_test.rb | ||
---|---|---|
assert_equal @subnet.to_s, "#{@network}/#{@netmask}"
|
||
end
|
||
|
||
def test_should_have_a_logger
|
||
assert_respond_to @subnet, :logger
|
||
end
|
||
|
||
def test_should_not_save_invalid_network_addresses
|
||
assert_raise Proxy::Validations::Error do
|
||
Proxy::DHCP::Subnet.new("1..1.1", @netmask)
|
||
... | ... | |
end
|
||
end
|
||
|
||
def test_options_should_be_a_hash
|
||
assert_kind_of Hash, @subnet.options
|
||
end
|
||
|
||
def test_subnet_includes_ip
|
||
assert @subnet.include?("192.168.0.10")
|
||
end
|
Also available in: Unified diff
Fixes #16145 - Removed unnecessary tests for common dhcp entities