

def test_list_vlans_with_filters(self):
    result = self.network.list_vlans(vlan_number=5, datacenter='dal00', name='primary-vlan')
    self.assertEqual(result, fixtures.SoftLayer_Account.getNetworkVlans)
    _filter = {
        'networkVlans': {
            'primaryRouter': {
                'datacenter': {
                    'name': {
                        'operation': '_= dal00',
                    },
                },
            },
            'vlanNumber': {
                'operation': 5,
            },
            'name': {
                'operation': '_= primary-vlan',
            },
        },
    }
    self.assert_called_with('SoftLayer_Account', 'getNetworkVlans', filter=_filter)

dataset/ETHPy150Open softlayer/softlayer-python/tests/managers/network_tests.py NetworkTests.test_list_vlans_with_filters/original