From bf2f5bbe7e56cd3724a1cbf2e0695743dd9f9375 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 24 Dec 2013 21:44:11 +0100 Subject: [PATCH] fix py3 compatibility --- nsupdate/api/_tests/test_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsupdate/api/_tests/test_api.py b/nsupdate/api/_tests/test_api.py index 0426558..3500bc7 100644 --- a/nsupdate/api/_tests/test_api.py +++ b/nsupdate/api/_tests/test_api.py @@ -89,7 +89,7 @@ def test_nic_update_authorized_ns_unavailable(client): response = client.get(reverse('nic_update'), HTTP_AUTHORIZATION=make_basic_auth_header(TEST_HOST, TEST_SECRET)) assert response.status_code == 200 - assert response.content == 'dnserr' + assert response.content == b'dnserr' def test_nic_update_authorized_myip(client):