

def test_resolve_vlan_ids(self):
    mock = self.set_mock('SoftLayer_Account', 'getNetworkVlans')
    mock.return_value = [{
        'id': '100',
    }]
    _id = self.network.resolve_vlan_ids('vlan_name')
    self.assertEqual(_id, ['100'])

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