def test_get_vlan(): endpoint = endpoint_factory('foo') endpoint.endpoint_data = { 'vlan': 'foo', 'mac': '00:00:00:00:00:00', 'segment': 'foo', 'port': '1' } vlan = GetData._get_vlan(endpoint) assert vlan == 'foo'
def test_get_vlan(): endpoint = Endpoint('foo') endpoint.endpoint_data = { 'tenant': 'foo', 'mac': '00:00:00:00:00:00', 'segment': 'foo', 'port': '1' } vlan = GetData._get_vlan(endpoint) assert vlan == 'foo'