'- os_server:
nics:
- net-id: \'1234\'
- port-name: port1
- \'net-name=network1,port-id=4321\''

def test_nics_structured_mixed(self):

    args = os_server._network_args(self.module, self.cloud)
    assert (args[0]['net-id'] == '1234')
    assert (args[1]['port-id'] == '1234')
    assert (args[2]['net-id'] == '5678')
    assert (args[3]['port-id'] == '4321')
