def test_ip4_net(client):
    net = '8.8.8.0/24'
    n = Network(client=client, site_id=1, cidr=net)
    assert n['network_address'] == '8.8.8.0'
    assert n['prefix_length'] == 24
    assert n.identifier == net
    assert n['site_id'] == 1
    assert not n.is_host
    assert n.resource_name == 'networks'
    assert n['state'] == 'allocated'
    assert dict(n)
    assert n['network_address']
If |element| then remap it through |map|. If |element| is iterable then
dataset/ETHPy150Open dropbox/pynsot/tests/test_models.py/test_ip4_net--crossover with--dataset/ETHPy150Open adobe/brackets-shell/gyp/pylib/gyp/msvs_emulation.py/_DoRemapping