It's was hard but i have finally a beginning of test for start VPCS

This commit is contained in:
Julien Duponchelle
2015-01-15 13:02:43 +01:00
parent 0afea48e63
commit 6bb2b88f1a
6 changed files with 62 additions and 47 deletions

View File

@ -21,7 +21,7 @@ from gns3server import modules
@asyncio_patch('gns3server.modules.VPCS.create_vm', return_value=84)
def test_vpcs_create(server, mock):
def test_vpcs_create(server):
response = server.post('/vpcs', {'name': 'PC TEST 1'}, example=False)
assert response.status == 200
assert response.route == '/vpcs'