Fix tests

This commit is contained in:
Julien Duponchelle 2015-03-23 15:56:18 +01:00
parent f4c7212e33
commit cde5c3d994

View File

@ -16,8 +16,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
def test_udp_allocation(server): def test_udp_allocation(server, project):
response = server.post('/ports/udp', {}, example=True) response = server.post('/projects/{}/ports/udp'.format(project.id), {}, example=True)
assert response.status == 201 assert response.status == 201
assert response.json == {'udp_port': 10000} assert response.json == {'udp_port': 10000}