fixed unit test for vnode client, due to changes using python directly
This commit is contained in:
parent
7a0edd5927
commit
40176e861d
1 changed files with 3 additions and 3 deletions
|
@ -4,10 +4,10 @@ Unit tests for testing basic CORE networks.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import stat
|
import stat
|
||||||
|
import subprocess
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from mock import MagicMock
|
|
||||||
|
|
||||||
from core.emulator.emudata import NodeOptions
|
from core.emulator.emudata import NodeOptions
|
||||||
from core.emulator.enumerations import MessageFlags
|
from core.emulator.enumerations import MessageFlags
|
||||||
|
@ -113,9 +113,9 @@ class TestCore:
|
||||||
status, output = client.cmd_output(command)
|
status, output = client.cmd_output(command)
|
||||||
assert not status
|
assert not status
|
||||||
p, stdin, stdout, stderr = client.popen(command)
|
p, stdin, stdout, stderr = client.popen(command)
|
||||||
assert not p.status()
|
assert not p.wait()
|
||||||
assert not client.icmd(command)
|
assert not client.icmd(command)
|
||||||
assert not client.redircmd(MagicMock(), MagicMock(), MagicMock(), command)
|
assert not client.redircmd(subprocess.PIPE, subprocess.PIPE, subprocess.PIPE, command)
|
||||||
assert not client.shcmd(command[0])
|
assert not client.shcmd(command[0])
|
||||||
|
|
||||||
# check various command using command line
|
# check various command using command line
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue