def test_prefix_for_netmask(test_input, expected): assert utils.prefix_for_netmask(test_input) == expected