

def test_list_subnets_with_filters(self):
    result = self.network.list_subnets(identifier='10.0.0.1', datacenter='dal00', subnet_type='PRIMARY', version=4)
    self.assertEqual(result, fixtures.SoftLayer_Account.getSubnets)
    _filter = {
        'subnets': {
            'datacenter': {
                'name': {
                    'operation': '_= dal00',
                },
            },
            'version': {
                'operation': 4,
            },
            'subnetType': {
                'operation': '_= PRIMARY',
            },
            'networkIdentifier': {
                'operation': '_= 10.0.0.1',
            },
        },
    }
    mask = 'mask[hardware,datacenter,ipAddressCount,virtualGuests]'
    self.assert_called_with('SoftLayer_Account', 'getSubnets', mask=mask, filter=result)

dataset/ETHPy150Open softlayer/softlayer-python/tests/managers/network_tests.py NetworkTests.test_list_subnets_with_filters/VarMisuse@134/234 `_filter`->`result`