1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-01-11 08:30:57 +00:00

Fix tests

This commit is contained in:
Julien Duponchelle 2016-04-11 16:57:59 +02:00
parent ae5468a2d3
commit f6d0971f15
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -30,7 +30,6 @@ def test_reserve_tcp_port():
with patch("gns3server.modules.project.Project.emit") as mock_emit:
port = pm.reserve_tcp_port(2001, project)
assert port != 2001
assert mock_emit.call_args[0][0] == "log.warning"
def test_reserve_tcp_port_outside_range():
@ -39,7 +38,6 @@ def test_reserve_tcp_port_outside_range():
with patch("gns3server.modules.project.Project.emit") as mock_emit:
port = pm.reserve_tcp_port(80, project)
assert port != 80
assert mock_emit.call_args[0][0] == "log.warning"
def test_reserve_tcp_port_already_used_by_another_program():
@ -63,7 +61,6 @@ def test_reserve_tcp_port_already_used_by_another_program():
with patch("gns3server.modules.project.Project.emit") as mock_emit:
port = pm.reserve_tcp_port(2001, project)
assert port != 2001
assert mock_emit.call_args[0][0] == "log.warning"
def test_reserve_tcp_port_already_used():
@ -87,7 +84,6 @@ def test_reserve_tcp_port_already_used():
with patch("gns3server.modules.project.Project.emit") as mock_emit:
port = pm.reserve_tcp_port(2001, project)
assert port != 2001
assert mock_emit.call_args[0][0] == "log.warning"
def test_reserve_udp_port():